MailBuilder Class |
Namespace: Limilabs.Mail
The MailBuilder type exposes the following members.
Name | Description | |
---|---|---|
MailBuilder |
Creates new MailBuilder object.
|
Name | Description | |
---|---|---|
Alternatives |
Gets the list of all alternative elements. You can use AddAlternative(Byte) or AddAppointment(Appointment) methods to add attachment to this collection.
| |
Bcc |
Gets the address(es) of others who are to receive this email message ('BCC', Blind Carbon Copy header), even tough the content of the message may not be directed at them.
You can use MailBox to represent single mailbox, or MailGroup to represent group of email addresses.
BCC header is not rendered when Render method is used, however it is rendered when message is saved using Save(String) method.
| |
Cc | ||
CreatePlainTextAutomatically | ||
Date | ||
EnvelopeFrom |
Gets or sets the address of the sender taken from the SMTP envelope (SMTP "MAIL FROM").
| |
EnvelopeTo |
Gets or sets the address of the recipient taken from the SMTP envelope (SMTP "RCTP FROM").
| |
ExtractRfc822Automatically |
Gets or sets a value indicating if message (MessageRfc822, MessageGlobal) being a single root should be extracted.
Default is true.
| |
From |
Gets the author(s) of this email message ('From' header).
If it's empty, email message is NOT RFC 2822 compliant.
| |
Html |
Gets or sets HTML version of the email.
If value is not empty extracts plain text from HTML and overrides Text property.
| |
Importance |
Gets or sets the importance of a email message ('Importance' header).
Consider using PriorityHigh or PriorityLow methods instead of setting this field.
| |
InReplyTo |
Gets or sets the id of the parent email message ('In-Reply-To' header). Does not include surrounding brackets (< and >).
| |
MessageID |
Gets or sets id of a email message ('Message-ID' header). Does not include surrounding brackets (< and >).
If not set or set to null generated automatically.
| |
MimeConfiguration |
Gets MIME configuration (automatic binhex, apple, uue, tnef, rfc822 processing).
| |
NonVisuals |
Gets the list of all non visual elements. You can use AddAttachment(Byte) method to add attachment to this collection.
| |
NotificationTo |
Gets the disposition notifications address(es) ('Disposition-Notification-To' header).
Consider using RequestReadReceipt method instead of adding addresses to this property.
| |
Priority |
Gets or sets the priority of a email message ('Priority' header).
Consider using PriorityHigh or PriorityLow methods instead of setting this field.
| |
ProcessAppleAutomatically |
Gets or sets a value indicating if files stored in AppleSingle (ApplicationAppleFile) and AppleDouble (MultipartAppleDouble) entities should be extracted.
Default is true.
| |
ProcessBinHexAutomatically |
Gets or sets a value indicating if file stored in BinHex attachments (ApplicationBinHex) should be extracted.
Default is true.
| |
ProcessTnefAutomatically |
Gets or sets a value indicating if TNEF attachments (winmail.dat) should be processed.
TNEF processing extracts attachments and RTF data from TNEF file and removes TNEF from attachments collections afterwards.
Default is true.
| |
ProcessUueAutomatically |
Gets or sets a value indicating if inline UUE attachments should be extracted.
Default is true.
| |
RcptTo |
Gets or sets the address of the recipient taken from the SMTP envelope (SMTP "RCTP FROM").
| |
References |
Gets unique ids (MessageID) of the referenced email messages ('References' header). Does not include brackets (< and >).
| |
RemoveInlinedUue |
Gets or sets a value indicating if text representation of inline UUE attachments should be removed from Text.
Default is false. This property has no affect if ProcessUueAutomatically is set to false.
| |
ReplyTo | ||
ReturnPath |
Gets or sets return path address ('Return-Path' header). Does not include brackets (< and >).
| |
ReturnReceiptTo |
Gets return receipt address(es) ('Return-Receipt-To' header).
Consider using RequestReadReceipt method instead of adding addresses to this property.
| |
Rtf |
Gets or sets RTF version of the email.
If value is not empty extracts plain text from RTF and overrides Text property.
| |
Sender |
Gets or sets mailbox of the agent responsible for the actual transmission of this email message ('Sender' header).
| |
Sensitivity |
Gets or sets the sensitivity of a email message ('Sensitivity' header).
| |
SetDefaults | ||
SMIMEConfiguration |
Gets or sets S/MIME configuration (automatic decryption, signed message extraction, certificates used for decryption and signature validation).
| |
Subject |
Gets or sets subject of a message ('Subject' header).
| |
Text |
Gets or sets plain text version of the email. Please remember that setting Html will override plain text.
| |
To | ||
Visuals |
Gets the list of all visual elements. You can use AddVisual(Byte) method to add attachment to this collection.
| |
XConfirmReadingTo |
Gets confirm reading address(es) ('X-Confirm-Reading-To' header).
Consider using RequestReadReceipt method instead of adding addresses to this property.
| |
XEnvelopeFrom |
Gets or sets the address of the sender taken from the SMTP envelope (SMTP "MAIL FROM").
| |
XPriority |
Gets or sets the X-Priority of this email message ('X-Priority' header) (Outlook specific).
Value ranges from "1" to "5" where "1" is the highest priority, "3" is normal, and "5" is the lowest priority.
Consider using PriorityHigh or PriorityLow methods instead of setting this field.
| |
XRcptTo |
Gets or sets the address of the recipient taken from the SMTP envelope (SMTP "RCTP FROM").
|
Name | Description | |
---|---|---|
AddAlternative(Byte) |
Adds alternative view for this message.
| |
AddAlternative(MimeBase) |
Adds alternative view for this message.
| |
AddAppointment |
Adds specified appointment as alternative view for this message.
| |
AddAttachment(Byte) |
Adds attachment with specified data.
| |
AddAttachment(String) |
Adds attachment. Data are read from the specified file.
| |
AddAttachment(MimeData) |
Adds attachment.
| |
AddCustomHeader |
Adds custom header that will be added to IMail object after creation.
| |
AddVCard |
Adds specified VCARD as attachment to this message.
| |
AddVisual(Byte) |
Adds visual object with specified data.
| |
AddVisual(String) |
Adds visual object. Data are read from the specified file.
| |
AddVisual(MimeData) |
Adds visual object.
| |
Create |
Creates new IMail using builder configuration.
| |
CreateFromDocument | Obsolete.
Creates new IMail using specified MIME document.
| |
CreateFromEml(Byte) |
Creates new IMail using specified eml raw data.
| |
CreateFromEml(String) | Obsolete.
Creates new IMail using specified eml raw data string.
| |
CreateFromEmlFile |
Loads raw eml data from file and creates new IMail object.
| |
DKIMSign(ListDKIMSignatureConfiguration) |
Signs the message with multiple DKIM (DomainKeys Identified Mail) signatures.
| |
DKIMSign(RSACryptoServiceProvider, DKIMSignatureInfo) |
Signs the message using DKIM (DomainKeys Identified Mail) signature.
You can call this method multiple times to have several DKIM signatures present in the resulting message.
| |
DKIMSign(RSACryptoServiceProvider, String, String) |
Signs the message using DKIM (DomainKeys Identified Mail) signature.
You can call this method multiple times to have several DKIM signatures present in the resulting message.
| |
EncryptWith(X509Certificate2) |
Encrypts the message using specified certificate.
You can call this method multiple times to use several certificates for encryption.
General rule is that both sender and receiver should be able to decrypt the message.
| |
EncryptWith(EncryptionConfiguration) |
Encrypts the message using specified encryption configuration.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadHtml(String) | ||
LoadHtml(String, LoadHtmlConfiguration) | ||
LoadHtml(String, String) | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PriorityHigh | ||
PriorityLow | ||
RequestReadReceipt |
This method copies From or ReplyTo addresses to all read receipts lists, just before email is created (using Create method).
Read receipts are stored using NotificationTo, ReturnReceiptTo and XConfirmReadingTo headers.
| |
SignWith(X509Certificate2) |
Signs the message.
| |
SignWith(SignatureConfiguration) |
Signs the message.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |