Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Hall 22 posts 94 karma points
    Oct 24, 2022 @ 10:01
    Chris Hall
    0

    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!

  • Salomons 15 posts 107 karma points c-trib
    Apr 24, 2023 @ 14:29
    Salomons
    0

    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.

  • Chris Hall 22 posts 94 karma points
    Apr 25, 2023 @ 09:08
    Chris Hall
    1

    Ah fantastic, thank you!

  • Salomons 15 posts 107 karma points c-trib
    Apr 25, 2023 @ 09:30
    Salomons
    0

    Your welkom,

    Note that the git sample is just there for example purpose for Umbraco 10, let me know if you need more details.

Please Sign in or register to post replies

Write your reply to:

Draft