Sending Email Via Office 365

The Office 365 SMTP server requires a TLS connection. TLS support for Macro Scheduler's SMTPSendMail function was added in version 14.4.02 so to do this make sure you have the latest version.

Here's the code:

Let>server=smtp.office365.com
Let>SMTP_AUTH=1
Let>SMTP_USERID=YOUR_OFFICE365_USERID
Let>SMTP_PASSWORD=YOUR_OFFICE365_PASSWORD
Let>SMTP_PORT=587
Let>SMTP_SSL=1
Let>SMTP_USETLS=3
SMTPSendMail>RECIPIENT_EMAIL,server,YOUR_OFFICE365_EMAIL,YOUR_NAME,SUBJECT HERE,BODY TEXT,

See also:

Sending/Retrieving Emails via Gmail/SSL

Still need help? Contact Us Contact Us