Configure Email Notifications
These email settings are used for warehouse notifications and for scheduled reports, billboards and hedge revaluations.
Security Note: You need the Allow server engine settings security right in the Options user group security rights group for this activity. For Azure OAuth configuration, you need the Allow the user to maintain OAuth accounts security right in the Options user group security rights group.
Activity Steps
- Open the Warehouse Settings.
- Select the Email Notifications tab.
- Select the Authentication Method from EWS Or SMTP and OAuth.
Note: You can configure both authentication methods if required. (Test and save each configuration separately.) However, MineMarket only uses the actively selected authentication method to send emails.
- If the Authentication Method is EWS Or SMTP:
- Select whether to make Email Enabled.
- Select the Adaptor.
- If the Adaptor is Exchange Web Services:
- Complete the following fields.
- Exchange Version
- Exchange URL—Leave blank to use automatic discovery.
- Use Default Credentials—Checked if the current AD account is associated with the required exchange account. The end user’s account may differ from the MineMarket Service’s account.
- Username—Email address of the user account from which mails are sent.
- If Use Default Credentials is unchecked, enter the Password.
- Complete the following fields.
- If the Adaptor is SMTP Client:
- Complete the following fields.
- Hostname—The name or Internet Protocol (IP) address of the host on which the mail server resides.
- Port Number—To use the default SMTP port, enter 0 (zero).
- Enable SSL/TLS—If checked, either SSL or TLS can be used.
- Use Default Credentials
- If Use Default Credentials is unchecked, enter the Username and Password.
Note: If using Gmail as the email client, the following configuration is recommended:
- Use the hostnames smtp.gmail.com and imap.gmail.com as applicable.
- Use the ports 587 (TLS) for SMTP and 993 for IMAP as applicable. Confirm that these ports are accessible (for example, by installing Telnet and running the command Telnet [hostname] [port number]).
- Check Enable SSL/TLS.
- Set up an app password on the Google account.
- For IMAP, ensure IMAP access is enabled on the Google account.
- Complete the following fields.
- Complete the following fields.
- Email To—Multiple addresses can be entered on separate lines or separated with commas.
Note: This field is only used for warehouse notifications. Recipient addresses are included in configuration for each Report Schedule, Billboard Schedule and Hedge Revaluation Stream.
- From—This is a deprecated field. An email address must be entered; however, the sender's address is determined from the Account or Username.
- Email To—Multiple addresses can be entered on separate lines or separated with commas.
- To test the email settings, click Test Email.
A message displays the results of the test.
Important: If an error message about a stored server name displays, see Configure the MMServerName to Enable Emailing.
- If the Authentication Method is OAuth:
- Connect to the Azure OAuth application and authenticate at least one email account:
- Click Azure OAuth Configuration.
The Azure OAuth Configuration screen displays.
Important: For information about OAuth and registering your client application, see https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols and https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app (mobile and desktop applications).
- Update the following fields as required:
- Application Name—Default: MineMarketOAuthConfig.
- Endpoint—Default: https://login.microsoftonline.com/{0}/oauth2/nativeclient.
- Tenant—The tenant name is used as the {0} variable value in the Endpoint. Default: common.
- Client Application ID
- Right-click in the Accounts table and select Sign In from the menu.
An authentication dialog box displays. Follow the prompts to enter credentials for the account.
MineMarket uses Azure AD OAuth 2.0 to request an access token so that MineMarket can send emails on behalf of the Authorised Account.
Important: This authorised account must be a Microsoft email account that has been added to an Azure Active Directory on the domain that has access to the Azure OAuth application. Authorised accounts can also be used as the OAuth From address for any alert email group. See Set up Alert Emailing.
- Update the account Name if required.
The Scopes are for debugging purposes and are read-only. The scopes should include "SendMail",
- To change or clear the email account used for a listed Purpose, select the Client Name.
- To reauthenticate (or replace) an account, right-click the account name and select Reauthenticate from the menu and follow the prompts as required.
Note: Accounts that need to be reauthenticated are highlighted. At the prompt to select the Microsoft account, if you select a different account, that account replaces the previous account. Any previously assigned purposes are assigned to the reauthenticated or new account. An account can only exist once in the Accounts table.
- To sign out of an account, right-click the account name and select Sign Out from the menu.
Note: You can only sign out of an account if it is not currently assigned to any purpose.
- Click Save.
- Click Azure OAuth Configuration.
- Select whether to make Email Enabled.
- Select the email Priority from Normal, Low or High.
- Select the email address From which emails are sent. Select from addresses authenticated via the Azure OAuth Configuration screen.
- Enter the email addresses To which emails are sent. Enter multiple addresses on separate lines or separated with commas.
Note: This field is only used for warehouse notifications. Recipient addresses are included in configuration for each Report Schedule, Billboard Schedule and Hedge Revaluation Stream.
- Enter a Test Subject and Test Content.
- Click Test Email.
Important: If an error message about a stored server name displays, see Configure the MMServerName to Enable Emailing.
- Connect to the Azure OAuth application and authenticate at least one email account:
- Click OK.
Note: MineMarket saves the changes from this screen automatically (including the Azure OAuth configuration if applicable). This saving does not include any unsaved changes made on any other screens.