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
Bcc
Get the list of addresses in the Bcc.
public ICollection<EmailAddress> Bcc { get; }
Property Value
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
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
FromName
Get or set the from name
public string? FromName { get; set; }
Property Value
Headers
Get the list of headers.
public NameValueCollection Headers { get; }
Property Value
HtmlBody
Get or set the html body of the message if it exists.
public string? HtmlBody { get; set; }
Property Value
ReplyTo
Get the list of addresses in the Reply-To.
public ICollection<EmailAddress> ReplyTo { get; }
Property Value
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
TextBody
Get or set the text body of the message if it exists.
public string? TextBody { get; set; }
Property Value
To
public ICollection<EmailAddress> To { get; }