Configuring the email server
In order for Episerver to send out email notifications, you need to configure your email server with a server endpoint that is reachable from the site, and is allowed to send emails using a specified from-address. This topic explains how to configure an email SMTP server to work with Episerver DXC Service.
How it works
With your purchase of DXC Service you get access to a cloud-based email service for automated sending of transactional emails for website communication. This configuration is not automatically applied by Episerver through the standard config transforms, so you need to add this manually.
Email service account
Episerver will set up a an email service account for you, and the required host, username and password will be provided.
Adding the SMTP email configuration
Add the section below to the web.config of your website.
<configuration> <system.net> <mailSettings> <smtp from="firstname.lastname@example.org"> <network host="[provided by Episerver]" password="[provided by Episerver]" userName="[provided by Episerver]" port="[587, 465, 25 or 2525]" /> </smtp> </mailSettings> </system.net> </configuration>
To send emails from a custom domain, it is recommended to configure a Sender Policy Framework (SPF). This is a type of Domain Name Service (DNS) record that identifies which mail servers are permitted to send emails on behalf of your domain. Episerver will advise on the correct configuration for this.