From 42b2edda46df795367eb0c7c21bdc691614beaa2 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 16 Dec 2015 16:06:31 +0000 Subject: [PATCH] Migliorata gestione mailsend git-svn-id: svn://10.65.10.50/branches/R_10_00@23155 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- xvaga/xvtmail.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xvaga/xvtmail.cpp b/xvaga/xvtmail.cpp index 2d369b953..974b2b33f 100755 --- a/xvaga/xvtmail.cpp +++ b/xvaga/xvtmail.cpp @@ -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();