Information needed for setting up SendGrid as Email Provider for EUM:
- SMTP Server
- Port
- Email From address
- Username
- Password (API Key)
While installing EUM, in EUM_config.ps1, put in the SendGrid details under the #Email Settings comment:
# Email settings
$global:PHEUM_SMTPServer = "" #SendGrid SMTP host goes here
$global:PHEUM_EmailFrom = "" #Email From address goes here
Upon completion of installation, put in the following code with the SendGrid credentials in:
On Premises Installation:
- 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. - 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:
- 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. - 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="<the email address authenticated with SendGrid>">
<network host="smtp.sengrid.net" password="<apikeyvalue>" userName="apikey" port="587" />
</smtp>
</mailSettings>
</system.net>
Replace the <the email address authenticated with SendGrid> with the correct email address that EUM will send emails from. This email address must have been authenticated by SendGrid.
Replace <apikeyvalue> by the API key created by you in SendGrid.
Upon saving the changes, reset the IIS or restart the App Service to make the changes effective.
**Note: In the above example the non-SSL port of SendGrid was used.
Comments
0 comments
Please sign in to leave a comment.