Setting up Office 365 as Email Provider for EUM

|
Published

Information needed for setting up Office 365 as Email Provider for EUM:

  1. SMTP Server
  2. Port
  3. Email From address
  4. Username
  5. Password

While installing EUM, in EUM_config.ps1, put in the Office 365 details under the #Email Settings comment:

# Email settings
$global:PHEUM_SMTPServer = "" #Office 365 SMTP host goes here
$global:PHEUM_EmailFrom = "" #Email From address goes here

Upon completion of installation, put in the following code with the Office 365 credentials in:

On Premises Installation:

  1. C:\inetpub\wwwroot\~your eum site~\IdentityServer\ IdentityServer.exe.config. Scroll to the bottom and paste the following XML snippet before the </configuration> tag, updating the credentials.
  2. C:\inetpub\wwwroot\~your eum site~\Extranet_API_V4\ web.config. Scroll to the bottom and paste the following XML snippet before the </configuration> tag, updating the credentials.

App Service:

  1. In the top navigation, click on Debug console > CMD. Browse to site > wwwroot > IdentityServer and locate the IdentityServer.exe.config file. Click the pencil icon beside the file to open a text editor. Scroll to the bottom and paste the following XML snippet before the </configuration> tag, updating the credentials.
  2. In the top navigation, click on Debug console > CMD. Browse to site > wwwroot > Extranet_API_V4 and locate the web.config file. Click the pencil icon beside the file to open a text editor. Scroll to the bottom and paste the following XML snippet before the </configuration> tag, updating the credentials.
<system.net>
  <mailSettings>
   <smtp from="From email address">
    <network host="Office 365 SMTP host" password="SMTP password" userName="SMTP Username" port="SMTP Port" enableSsl="true" />
   </smtp>
  </mailSettings>
</system.net>

Upon saving the changes, reset the IIS or restart the App Service to make the changes effective.

Note: Below details should work:

host="smtp.office365.com"
port="587"