The Old Sewing Factory

The Old Sewing Factory

06 Jan 2011

Enable SSL in web.config for SmtpClient

If you want to use SSL when connecting to your email server and are using the SmtpClient from .Net 4.0 you can now set EnableSSL via the web.config file, which you couldn’t do before.

I’m only posting this because the docs ( for .Net 4 don’t seem to bother mentioning it, which is a bit frustrating.

Now you can do this:

comments powered by Disqus