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:
		
							parent
							
								
									19e2d1b3ce
								
							
						
					
					
						commit
						42b2edda46
					
				@ -42,7 +42,9 @@ static bool GetMailParams(wxString& smtp, wxString& port, wxString& user, wxStri
 | 
				
			|||||||
  port = GetMailParam("Port");
 | 
					  port = GetMailParam("Port");
 | 
				
			||||||
  user = GetMailParam("User");
 | 
					  user = GetMailParam("User");
 | 
				
			||||||
  pass = GetMailParam("Password");
 | 
					  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);
 | 
					  from = GetMailParam("From", f);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return !smtp.IsEmpty() && !pass.IsEmpty();
 | 
					  return !smtp.IsEmpty() && !pass.IsEmpty();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user