When you're using Office 365 and want to send an email, you have two choices SMTP or Microsoft Graph API,…