Hide menu Last updated: Mar 21 2017
Area: Episerver DXC Service Applies to versions: Not applicable

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.

      <smtp from="yourdefaultreply@address.com">
            host="[provided by Episerver]"
            password="[provided by Episerver]"
            userName="[provided by Episerver]"
            port="[587, 465, 25 or 2525]" />

DNS 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.


SendGrid service is included in DXC, use that one instead :)

DXC Service includes an email service currently based on SendGrid. The steps described here are needed to configure Episerver to allow emails being sent with the included service.