Azure Graph API Send email
With this module you can send emails form your application from a Microsoft account
Typical usage scenario
Sending “email@example.com” emails from your Mendix Application using the Microsoft Graph API to inform your customer/employees. You can choose to use the Email Template module to create your emails or create the emails yourself.
- Send emails from a Microsoft email address. The email address needs to have correct settings/rights configured in Azure.
- Emails are send using API permission type “Application”, which means the user doesn't need to log in to Microsoft
- Send attachments
- Emails can be saved in Send items
- Not possible to send emails using API permission type “Delegated”
CommunityCommons (tested with version 8.2.0)
1 Download the module
2 Download CommunityCommons AppStore module
1 Download the CommunityCommons AppStore module
2 Make sure you have a Microsoft e-mail address
3 Add a new application to your portal.azure.com, see how to do this here: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
4a Add Mail.Send permission to the app, see how to do this here: https://docs.microsoft.com/en-us/azure/active-directory/develop/consent-framework
4b Make sure the permission you added is of the Type "Application" and not "Delegated"
5 Set the constant "DirectoryTenantID" equal to "Directory (tenant) ID" from the Azure portal
6 Set the constant "ClientID" equal to "Application (client) ID" from the Azure portal
7 Create a new secret in the Azure portal and use the "Value" field to fill the constant "ClientSecret"
8 (optional) Adjust the EmailSeparator to you liking
9 Use the Email_Send Microflow