Hi,
Try changing your code to port 587. I just tested it here, and it works.
Here's the code I used:
EmailMessage m = new EmailMessage( "smtp.gmail.com" );
m.Username = "test@gmail.com";
m.Password = "test";
//create the ssl socket
AdvancedIntellect.Ssl.SslSocket ssl = new AdvancedIntellect.Ssl.SslSocket();
m.LoadSslSocket( ssl );
//logging on the ssl socket
ssl.Logging = true;
ssl.LogPath = "c:\\ssl.log";
//rest of aspNetEmail properties
m.Port = 587;
m.To = "test@123aspx.com";
m.FromAddress = "test@gmail.com";
m.Subject = "test";
m.Body = "test";
m.Logging = true;
m.LogPath = "c:\\email.log";
m.Send();
Cheers!
Dave
|