{"id":2843,"date":"2017-10-29T18:23:02","date_gmt":"2017-10-29T18:23:02","guid":{"rendered":"https:\/\/www.mjtnet.com\/blog\/?p=2843"},"modified":"2017-10-29T18:25:35","modified_gmt":"2017-10-29T18:25:35","slug":"sending-email-via-office-365","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2017\/10\/29\/sending-email-via-office-365\/","title":{"rendered":"Sending Email via Office 365"},"content":{"rendered":"<p>We&#8217;ve had a few questions lately about how to send email using the SMTPSendMail function via the Office 365 SMTP server.<\/p>\n<p>Until <a href=\"https:\/\/www.mjtnet.com\/blog\/2017\/10\/29\/macro-scheduler-14-4-02-available\/\">Macro Scheduler 14.4.02<\/a> which we have released today this wasn&#8217;t possible as explicit TLS was required and SMTPSendMail did not support it.  We have now added this.  So as long as you have updated to Macro Scheduler 14.4.02 (and you have a valid Office 365 account) here&#8217;s the code you need to send an email via the Office 365 mail server:<\/p>\n<pre name=\"code\" class=\"macroscript\">Let>server=smtp.office365.com\r\nLet>SMTP_AUTH=1\r\nLet>SMTP_USERID=YOUR_OFFICE365_USERID\r\nLet>SMTP_PASSWORD=YOUR_OFFICE365_PASSWORD\r\nLet>SMTP_PORT=587\r\nLet>SMTP_SSL=1\r\nLet>SMTP_USETLS=3\r\nSMTPSendMail>RECIPIENT_EMAIL,server,YOUR_OFFICE365_EMAIL,YOUR_NAME,SUBJECT HERE,BODY TEXT,<\/pre>\n<p>See also:<br \/>\n<a href=\"http:\/\/help.mjtnet.com\/article\/4-sending-retrieving-emails-via-gmail-ssl\">http:\/\/help.mjtnet.com\/article\/4-sending-retrieving-emails-via-gmail-ssl<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve had a few questions lately about how to send email using the SMTPSendMail function via the Office 365 SMTP server. Until Macro Scheduler 14.4.02 which we have released today this wasn&#8217;t possible as explicit TLS was required and SMTPSendMail did not support it. We have now added this. So as long as you have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2843"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=2843"}],"version-history":[{"count":4,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2843\/revisions"}],"predecessor-version":[{"id":2848,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2843\/revisions\/2848"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=2843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=2843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=2843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}