Hello @impactbt,
I understand you’re experiencing an “unauthorized error” when trying to send test emails. Let’s troubleshoot this together.
Here’s a possible solution that I’d recommend you check:
Incorrect App Callback URL: Ensure that the App Callback URL you’ve provided in the FluentSMTP settings is correct and includes all necessary parameters. Verify that it matches the URL in your Azure App registration.
If that doesn’t resolve the issue, here are some other suggestions:
- Insufficient permissions:?Confirm that the email address you’re using as the sender has the necessary permissions to send emails and has a valid Office365 subscription.
- Incorrect Account Type:?The Azure App must be created with the account type “Accounts in any organizational directory (Any Azure AD directory – Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox).”
- Incorrect Logged-in Account:?When authorizing the connection, ensure that you’re using the same email account that was used to create the Azure App.
- Domain Verification:?Verify that the domain you’re sending emails from is verified in Microsoft Office365.
If the issue persists, please refer to the Office 365 API documentation provided in the support article.
Feel free to keep me updated on your progress, and let me know if you need any additional support.