I am trying to use the System.Net.Mail.SmtpClient class to send email through my company mail server. All SMTP connections to the mail server must be SSL, and it uses a self-signed certificate. This is good for Outlook, where you can just click ok in the warning dialog, but does anyone know a way to force SmtpClient to accept a self-signed certificate?
I plan to use this application on the Windows Azure platform, so I cannot install the signed certificate itself as a trusted root.
c # ssl smtpclient self-signed
sipwiz
source share