Blog Logo
TAGS

Sending emails in .NET with Microsoft Graph

Learn how to send emails using Microsoft Graph, a set of restful http APIs to interact with Microsoft 365, as sending emails using the SmtpClient in .NET and Exchange Online has been deprecated. Access to Microsoft Graph requires authentication with a OAuth access token or app registration in Azure AD. This article walks through the steps required to set up an app registration and provides tips on how to use delegated or application permissions to send emails using Microsoft Graph. Limitations (e.g., sending to more than 10,000 mails per day) are also discussed. In summary, Microsoft Graph is a powerful tool and an excellent alternative to the SmtpClient, so why not give it a try today?