Migliorata gestione mailsend

git-svn-id: svn://10.65.10.50/branches/R_10_00@23155 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2015-12-16 16:06:31 +00:00
parent 19e2d1b3ce
commit 42b2edda46

View File

@ -42,7 +42,9 @@ static bool GetMailParams(wxString& smtp, wxString& port, wxString& user, wxStri
port = GetMailParam("Port");
user = GetMailParam("User");
pass = GetMailParam("Password");
wxString f = user; f += "@"; f += smtp.AfterFirst('.');
wxString f = user;
if (f.find('@') < 0)
{ f += "@"; f += smtp.AfterFirst('.'); }
from = GetMailParam("From", f);
return !smtp.IsEmpty() && !pass.IsEmpty();