<p>I have no out of the box solution, but maybe you could use <a href="https://github.com/bertoost/Craft-Mailjet" rel="nofollow noreferrer">https://github.com/bertoost/Craft-Mailjet</a> and customize it, and get some code-ideas from <a href="https://wordpress.org/plugins/fluent-smtp/" rel="nofollow noreferrer">https://wordpress.org/plugins/fluent-smtp/</a></p>
<p>Another approach could be to use <a href="https://plugins.craftcms.com/sendgrid" rel="nofollow noreferrer">https://plugins.craftcms.com/sendgrid</a> and use as a Microsoft Connector <a href="https://learn.microsoft.com/en-us/connectors/sendgrid/" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/connectors/sendgrid/</a></p>

CC BY-SA 4.0
2023-05-05T07:56:48.863Z
2023-05-05T07:58:54.363Z
2023-05-05T07:58:54.363Z
ruedimentaer
<p>I want to be able to use our Office365 to send emails from a Craft. There’s many reasons including organisational security policies, control issues and potential psychosis.</p>
<p>Does anyone know how to set this up? Recent changes to Microsoft Exchange security means that basic authentication is no longer supported and I probably need an API key set up on Azure. (I am guessing). I need to be able to authenticate the sending user to adhere to site email poilicies. I just can’t see how it is done.</p>
<p>Any suggestions of leading questions would be welcomed. I have seen plugins for this on WP but cannot find anything comparable in Craft.</p>
<p>BC</p>

<smtp>
Use Office365/Azure to send emails
# Use Office365/Azure to send emails

(Asked by: username_0 on 2022-09-30)

I want to be able to use our Office365 to send emails from a Craft. There’s many reasons including organisational security policies, control issues and potential psychosis.

Does anyone know how to set this up? Recent changes to Microsoft Exchange security means that basic authentication is no longer supported and I probably need an API key set up on Azure. (I am guessing). I need to be able to authenticate the sending user to adhere to site email poilicies. I just can’t see how it is done.

Any suggestions of leading questions would be welcomed. I have seen plugins for this on WP but cannot find anything comparable in Craft.

BC

**Tags:** smtp


---

## 1 answers

### Answer by username_1 on 2023-05-05. Score: 2

I have no out of the box solution, but maybe you could use <https://github.com/bertoost/Craft-Mailjet> and customize it, and get some code-ideas from <https://wordpress.org/plugins/fluent-smtp/>

Another approach could be to use <https://plugins.craftcms.com/sendgrid> and use as a Microsoft Connector <https://learn.microsoft.com/en-us/connectors/sendgrid/>


---

