SMTP Settings
Required Settings for sending E-mail messages
Last updated
Required Settings for sending E-mail messages
Last updated
Using your own (corporate) mail server for handling emails has the additional advantage of logging and providing information:
when your messages cannot be delivered to recipients, the Non-Delivery-Reports will be available on your own mail server, so you can act on that information.
Also, all sent items can be found in the mailbox of the used sender – available for review, follow-up, or just evidence that a message has indeed been sent.
The sender you set on the e-mail process node (from-parameter) must have the same domain as the SMTP server, or the SMTP server must be allowed to send mails on behalf of the sender in the from-parameter.
Per portal you can select which SMTP Server you want to use to send e-mail messages from.
The list of available SMTP Servers is managed on Workspace Level (or in DevOps portal for Kubernetes Runtimes).
Go to Manage Projects & Workspaces.
On the specific Workspace, access the context-menu [...] and select SMTP Settings.
On the overlay for SMTP Servers, add or edit an entry.
Parameters to set, are:
Host (smtp server hostname, like smtp.gmail.com or smtp.office365.com).
Port (587 is the standard for secure SMTP via TLS).
Username (the account that can connect to the server and has sufficient rights to send messages on behalf of the from-address you want to use in your project's emails).
Password for that username to access the SMTP server.
After one or more SMTP server profiles have been set up, you can pick one on the Portal Settings to be used specifically for sending out E-mail messages using the Email Process Node.
It is possible to use a (free) Gmail account that you own, as SMTP server.
https://support.google.com/a/answer/176600?hl=en
If you want to use IP-whitelisting on your SMTP-server, or use an Exchange Connector to allow incoming SMTP traffic from your WEM Application, you may need to know the IP-address for the WEM Server that sends out the SMTP traffic.
For portals running in EUR zone, use [185.3.209.154] as the IP-address from which WEM is sending the emails.
For portals running in APAC zone, the outbound mail will come from [52.189.211.222].
The account-username to be used in the WEM SMTP Profile must be an active account in Office365 - you may need to specifically login to Office365 with this account as Microsoft may require this for accounts to be activated and checked with additional information - also check Multi-Factor settings that may cause issues when an application acts as non-interactive-user. This account may be setup as a non-personal account (like smtpsender@yourdomain.com).
The Office365 Account must have a valid office license with a mailbox (so you can also see the Sent Items there and useful info like non-delivery-reports).
The Office365 Account has permissions or aliases to send on behalf of all the addresses used in the FROM parameter of the email nodes in your application (like noreply@yourdomain.com).
The Office365 Account must be setup using MFA and an App Password must be created. This App Password must be used in the WEM SMTP Profile Settings. This is necessary to work around the required Multi Factor Authentication and to enable another application like your WEM Runtime Portal to login to Office365 bypassing the MFA.
Read this link from Microsoft about how to set up App Password.