Table of Contents

Class SystemEmailOptions

Namespace
CMS.EmailEngine
Assembly
CMS.EmailEngine.dll

Configuration for system email sending.

public sealed class SystemEmailOptions
Inheritance
object
SystemEmailOptions
Extension Methods

Remarks

Allows configuration of different domains for system emails in different environments.

Properties

SendingDomain

The domain used in the sender address of system emails. The default value is 'localhost.local'.

public string SendingDomain { get; set; }

Property Value

string

ServiceDomain

The domain used as the base URL of various links in system emails (asset URLs, password reset links, etc.).

public string ServiceDomain { get; set; }

Property Value

string

Remarks

If not specified, the system uses the host of the HTTP request that caused the email to be sent (typically the domain where the administration application is running). If not set and a system email is sent without the context of an HTTP request, an exception is thrown.