Table of Contents

Class EmailMessage

Namespace
Dynamicweb.Mailing
Assembly
Dynamicweb.Core.dll

An email message.

public sealed class EmailMessage
Inheritance
EmailMessage
Inherited Members

Properties

Attachments

Get the attachments.

public ICollection<EmailAttachment> Attachments { get; }

Property Value

ICollection<EmailAttachment>

Bcc

Get the list of addresses in the Bcc.

public ICollection<EmailAddress> Bcc { get; }

Property Value

ICollection<EmailAddress>

Remarks

Recipients in the Blind-Carbon-Copy list will not be visible to the other recipients of the message.

Cc

Get the list of addresses in the Cc.

public ICollection<EmailAddress> Cc { get; }

Property Value

ICollection<EmailAddress>

Remarks

The addresses in the Cc header are secondary recipients of the message and are usually not the individuals being directly addressed in the content of the message.

FromAddress

Get or set the from addresses

public required string FromAddress { get; set; }

Property Value

string

FromName

Get or set the from name

public string? FromName { get; set; }

Property Value

string

Headers

Get the list of headers.

public NameValueCollection Headers { get; }

Property Value

NameValueCollection

HtmlBody

Get or set the html body of the message if it exists.

public string? HtmlBody { get; set; }

Property Value

string

ReplyTo

Get the list of addresses in the Reply-To.

public ICollection<EmailAddress> ReplyTo { get; }

Property Value

ICollection<EmailAddress>

Remarks

When the list of addresses in the Reply-To header is not empty, it contains the address(es) where the author(s) of the message prefer that replies be sent.

Subject

Get or set the subject of the message.

public string? Subject { get; set; }

Property Value

string

TextBody

Get or set the text body of the message if it exists.

public string? TextBody { get; set; }

Property Value

string

The text body if it exists; otherwise, null.

To

public ICollection<EmailAddress> To { get; }

Property Value

ICollection<EmailAddress>
To top