[Mono-list] SSL and SMTP

Abe Gillespie abe.gillespie at gmail.com
Tue Nov 11 11:46:00 EST 2008


Nope, same problem.  Are you sure you don't already have the proper
certificates installed and it would therefore succeed?

-Abe

On Tue, Nov 11, 2008 at 11:33 AM, Gonzalo Paniagua Javier
<gonzalo.mono at gmail.com> wrote:
> 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.
>
> -Gonzalo
>
>
>


More information about the Mono-list mailing list