Azure Graph API Send email

Content Type: Module
Categories: Connectors

Overview

Send emails using the Microsoft Azure Graph API

Documentation

Description

With this module you can send emails form your application from a Microsoft account

Typical usage scenario

Sending “noreply@yourcompany.here” 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.

Features

- 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

Limitations

- Not possible to send emails using API permission type “Delegated”

Dependencies

CommunityCommons (tested with version 8.2.0)

Installation

1 Download the module
2 Download CommunityCommons AppStore module

Configuration

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

Releases