[Mono-list] SSL and SMTP
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Tue Nov 11 11:33:25 EST 2008
On Tue, 2008-11-11 at 11:29 -0500, Abe Gillespie wrote:
> I've successfully used the ICertificatePolicy hack before to connect
> to https but this doesn't seem to work for sending Gmail. Please see
> the following code:
> // Send the message.
> SmtpClient smtp = new SmtpClient("smtp.gmail.com");
> smtp.EnableSsl = true;
Try adding: "smtp.Port = 587;" there. It works fine for me that way.
More information about the Mono-list