If you are not able to use an SMTP server for email relay, WebTMA 7 offers an alternative using Microsoft Graph API’s to connect to your M365 account.
Microsoft Graph Email Settings for M365 Email
If you have a M365 email account that you would like to use to relay outgoing emails from WebTMA 7, the following settings need to be populated inside the appsettings.json configuration file in the email service install folder.
"EmailSettings": {
"UseMicrosoftGraph":
"true",
"DefaultFrom": "[M365 Email Address]",
"AppID": "[MS Graph App ID]",
"AppSecret": "[MS Graph App Secret]",
"DirectoryID": "[MS Graph Email Folder]",
"AuthEndpointUrl": "https://login.microsoftonline.com/{0}/oauth2/v2.0/token",
"UserAccountId": "[MS Graph User Account Id]"
}
The following values should be available to you from your M365 account. Please refer to Microsoft documentation for additional information.
- AppID: The unique GUID generated by Microsoft to be used for Graph API access by your account.
- AppSecret: The secret value generated by Microsoft to be used for Graph API access by your account.
- DirectoryID: A GUID generated by Microsoft to identify the email folder you want to use for Graph API access.
- AuthEndpointUrl: This value should be left as it is above.
- UserAccountId: A GUID generated by Microsoft to identify the specific email address account to use for Graph API access.