Message Class |
Namespace: NetQuarry.Mail
The Message type exposes the following members.
Name | Description | |
---|---|---|
Message(IAppContext) |
Constructs an empty object
| |
Message(IAppContext, String, String) |
Constructs a new instance of the object.
| |
Message(IAppContext, MailMessage, SendEmailFlags, String, String, MessageRelationships) |
Constructs a new instance of the object.
| |
Message(IAppContext, MailMessage, SendEmailFlags, String, String, MessageRelationships, String) |
Constructs a new instance of the object.
|
Name | Description | |
---|---|---|
Application |
Gets/Sets the IAppContext object
| |
Attachments |
Gets/Sets the attachment collection
| |
Bcc |
Gets/Sets the original BCC set of addresses. This is BEFORE addresses are removed because of the no send list.
| |
Categories |
Returns a list of categories to log / send with this message
| |
CategoryID |
Gets/Sets the category id used to send the email (optional)
| |
CC |
Gets/Sets the original CC set of addresses. This is BEFORE addresses are removed because of the no send list.
| |
DateSent |
Gets/Sets the sent date of the message (in UTC)
| |
From |
Gets/Sets the From address to use.
| |
MailMessage |
Gets the mail message. You cannot set this object. To create a message before sending
you should call the PrepareMessage method.
| |
Mapper |
Gets/Sets the mapper object
| |
MessageID |
Gets/Sets the unique message ID (GUID)
| |
PlainTextBody |
The plain text body of the message
| |
Relationships |
Collection of relationships to add during the log
| |
RemovedAddresses |
Gets/Sets email addresses that were removed due to no send list.
| |
SendEmailFlags |
Gets/Sets email flags specific to this send
| |
ServiceName |
Gets/Sets the Service Name through which the email will be sent
| |
Status |
Gets/Sets the status of the message (by default this is 0, meaning sent, but added to support logging of received emails)
| |
TemplateData |
Gets/Sets the name/value collection of data to be merged into the template.
| |
TemplateName |
Gets/Sets the template name used to send the email.
| |
To |
Gets/Sets the original To set of addresses. This is BEFORE addresses are removed because of the no send list.
| |
UnsubscribeEmail |
The unsubscribe email address
| |
UnsubscribeUrl |
The unsubscribe URL
|
Name | Description | |
---|---|---|
AddListUnsubscribeHeader |
Adds the list-unsubscribe header to the email
| |
Equals | (Inherited from Object.) | |
ExpectedAddressCount |
Determine the number of email address that would be expected in the specified email address list.
Knowing the number of expected email addresses can be helpful in determining whether a
MailMessage created by PrepareMessage rejected any invalid
email addresses that were provided to To, CC, or Bcc.
Currently the number of expected addresses is determined by looking for semi-colons and/or at-signs.
| |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InsertRelationships |
Adds any existing relationships to the xot_email_message_rel table.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PrepareMessage |
Prepares the message to be sent. This expands the template data set on this object into the template,
creates the MailMessage object with the associated data.
The message is ready to be sent at this point.
| |
PreparePlainTextBody |
Prepares the text/plain body of the message if it exists
| |
Send |
Sends an email with using this message.
| |
Send(String) |
Sends an email with using this message.
| |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |