Send all Umbraco emails via Office 365 / Graph API
Does anyone know of a way to swap out all email sending (forms, backoffice password resets / invites) from the default SmtpClient to a custom implementation?
I need to connect directly to an Office365 mailbox via Graph API and not default SMTP creds.
I couldn't see a straightforward way to achieve this, other a custom backofficeuser provider, which I'd like to avoid if at all possible.
Send all Umbraco emails via Office 365 / Graph API
Does anyone know of a way to swap out all email sending (forms, backoffice password resets / invites) from the default SmtpClient to a custom implementation?
I need to connect directly to an Office365 mailbox via Graph API and not default SMTP creds.
I couldn't see a straightforward way to achieve this, other a custom backofficeuser provider, which I'd like to avoid if at all possible.
Any help greatly appreciated! Thanks!
Hello Chris,
I followed this link: https://zimmergren.net/sending-e-mails-using-microsoft-graph-using-dotnet/
You can create your own implementation of the IEmailService like so:
https://github.com/vwa-software/UmbracoGraphEmailSender
Hope this helps.
Ah fantastic, thank you!
Your welkom,
Note that the git sample is just there for example purpose for Umbraco 10, let me know if you need more details.
is working on a reply...