Class EmailMessage
The email message table is intended to keep a record of all emails sent through the system making them searchable and to provide a means for auditing and tracking communication with users.
Inheritance
Namespace: LymeTemplateApi.Models
Assembly: LymeTemplateApi.Models.dll
Syntax
public class EmailMessage : object
Properties
Bcc
The comma separated list of BCC recipients for the email.
Declaration
public string? Bcc { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Body
The Body of the email. In order to conserve space, the body of the email is stored on the file-system and not the database. The folder where emails are stored in the value stored in the Web.config's EmailBodyContentFolder application variable.
Declaration
public string? Body { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Cc
The comma separated list of CC recipients for the email.
Declaration
public string? Cc { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
DateSent
The date the email was sent.
Declaration
public DateTime DateSent { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
EmailAttachments
EF Navigation property. A list of any attachments sent with the email.
Declaration
public IList<EmailAttachment> EmailAttachments { get; set; }
Property Value
Type | Description |
---|---|
IList<EmailAttachment> |
From
The From Address for the email.
Declaration
public string? From { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Id
The primary key.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsHtml
Whether or not the email is HTML (vs plain text)
Declaration
public bool IsHtml { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Subject
The subject of the email.
Declaration
public string? Subject { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
To
The comma separated list of To Addresses for the email.
Declaration
public string? To { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |