SMTP connection to Office 365

SSLStartMode must be set to Explicit to connect to Office 365 via SMTP.

Date Entered: 08/16/2013    Last Updated: 08/16/2013

Office 365 requires explicit SSL because it uses a non-standard port. For example:

For HTMLMailerS:
htmlmailers1.MailServer = "smtp.office365.com";
htmlmailers1.MailPort = 587;
htmlmailers1.SSLStartMode = HtmlmailersSSLStartModes.sslExplicit;
For SMTPS:
smtps1.MailServer = "smtp.office365.com";
smtps1.MailPort = 587;
smtps1.SSLStartMode = SmtpsSSLStartModes.sslExplicit;

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.