|  | UTMail
    1.1
    Email Composition and Sending Plugin | 
Describes an email message to be composed or sent directly. More...
 
  
 | Public Member Functions | |
| MailMessage () | |
| Initializes a new instance of the UT.MailMessage class.  More... | |
| MailMessage (MailMessage mailMessage) | |
| Initializes a new instance of the UT.MailMessage class.  More... | |
| MailMessage | AddTo (string emailAddress) | 
| Adds "To" recipient.  More... | |
| MailMessage | AddCC (string emailAddress) | 
| Adds "Cc" recipient ("send as copy").  More... | |
| MailMessage | AddBcc (string emailAddress) | 
| Adds "Bcc" recipient ("send as hidden copy").  More... | |
| MailMessage | SetSubject (string subject) | 
| Sets the email message subject.  More... | |
| MailMessage | SetBody (string body) | 
| Sets the email message body.  More... | |
| MailMessage | SetBodyHtml (bool isBodyHtml) | 
| Specifies whether Body should be interpreted as HTML.  More... | |
| MailMessage | AddAttachment (string attachmentPath) | 
| Adds an attachment from a file specified by full path.  More... | |
| MailMessage | AddAttachment (global::System.IO.Stream stream, string fileName) | 
| Adds an attachment from System.IO.Stream.  More... | |
| MailMessage | AddAttachment (byte[] byteBuffer, string fileName) | 
| Adds an attachment from a byte buffer, i.e. byte[].  More... | |
| MailMessage | AddAttachment (string text, global::System.Text.Encoding targetEncoding, string fileName) | 
| Adds an attachment from text.  More... | |
| MailMessage | AddAttachment (string text, string fileName) | 
| Adds an attachment from text.  More... | |
| Properties | |
| new MailAddressCollection | To  [get] | 
| A collection of "To" recipients.  More... | |
| new MailAddressCollection | CC  [get] | 
| A collection of "To" recipients.  More... | |
| new MailAddressCollection | Bcc  [get] | 
| A collection of "To" recipients.  More... | |
| new string | Subject  [get, set] | 
| Gets or sets email message subject.  More... | |
| new string | Body  [get, set] | 
| Gets or sets email message body.  More... | |
| new bool | IsBodyHtml  [get, set] | 
| Specifies whether Body should be interpreted as HTML.  More... | |
| new AttachmentCollection | Attachments  [get] | 
| A collection of all attachments.  More... | |
Describes an email message to be composed or sent directly.
Implements IDisposable, so you have to either call Dispose() or wrap MailMessages with using. F.e., see UTMailSample.
| UT.MailMessage.MailMessage | ( | ) | 
Initializes a new instance of the UT.MailMessage class.
| UT.MailMessage.MailMessage | ( | MailMessage | mailMessage | ) | 
Initializes a new instance of the UT.MailMessage class.
| mailMessage | Mail message to copy from. | 
| MailMessage UT.MailMessage.AddAttachment | ( | string | attachmentPath | ) | 
Adds an attachment from a file specified by full path.
| attachmentPath | A full path of a file to attach. | 
| MailMessage UT.MailMessage.AddAttachment | ( | global::System.IO.Stream | stream, | 
| string | fileName | ||
| ) | 
Adds an attachment from System.IO.Stream.
| stream | System.IO.Stream to write as an attachment. | 
| fileName | The attachment file name to be displayed for recipients. | 
| MailMessage UT.MailMessage.AddAttachment | ( | byte [] | byteBuffer, | 
| string | fileName | ||
| ) | 
Adds an attachment from a byte buffer, i.e. byte[].
| byteBuffer | A byte buffer to write as an attachment. | 
| fileName | The attachment file name to be displayed for recipients. | 
| MailMessage UT.MailMessage.AddAttachment | ( | string | text, | 
| global::System.Text.Encoding | targetEncoding, | ||
| string | fileName | ||
| ) | 
Adds an attachment from text.
| text | A text to write as an attachment. | 
| targetEncoding | Specifies the target attachment file encoding. | 
| fileName | The attachment file name to be displayed for recipients. | 
| MailMessage UT.MailMessage.AddAttachment | ( | string | text, | 
| string | fileName | ||
| ) | 
Adds an attachment from text.
| text | A text to write as an attachment. | 
| fileName | The attachment file name to be displayed for recipients. | 
The target attachment file encoding will be UTF-8.
| MailMessage UT.MailMessage.AddBcc | ( | string | emailAddress | ) | 
Adds "Bcc" recipient ("send as hidden copy").
| emailAddress | Email address. | 
macOS email composing API doesn't support specifying "Bcc" recipients - emailAddress will be added as "To" when composing on macOS.
| MailMessage UT.MailMessage.AddCC | ( | string | emailAddress | ) | 
Adds "Cc" recipient ("send as copy").
| emailAddress | Email address. | 
macOS email composing API doesn't support specifying "Cc" recipients - emailAddress will be added as "To" when composing on macOS.
| MailMessage UT.MailMessage.AddTo | ( | string | emailAddress | ) | 
Adds "To" recipient.
| emailAddress | Email address. | 
| MailMessage UT.MailMessage.SetBody | ( | string | body | ) | 
Sets the email message body.
| body | Body. May contain HTML tags if IsBodyHtml is enabled (not supported in Windows and Windows Store builds). | 
| MailMessage UT.MailMessage.SetBodyHtml | ( | bool | isBodyHtml | ) | 
Specifies whether Body should be interpreted as HTML.
| isBodyHtml | Specifies whether HTML is enabled or not. | 
Not supported in Windows and Windows Store builds. For more details please see: https://support.microsoft.com/en-us/help/268440/info-mapi-is-not-suitable-for-html-messages and https://social.msdn.microsoft.com/Forums/en-US/8125da13-7d79-4a5a-82a5-57c8a322be78/uwp10240c-emailmessage-with-emailmessagebodykindhtml
| MailMessage UT.MailMessage.SetSubject | ( | string | subject | ) | 
Sets the email message subject.
| subject | Subject. | 
| 
 | get | 
A collection of all attachments.
The attachments.
| 
 | get | 
A collection of "To" recipients.
macOS email composing API doesn't support specifying "Bcc" recipients - they will be added as "To" when composing on macOS.
| 
 | getset | 
Gets or sets email message body.
Body.
| 
 | get | 
A collection of "To" recipients.
macOS email composing API doesn't support specifying "Cc" recipients - they will be added as "To" when composing on macOS.
| 
 | getset | 
Specifies whether Body should be interpreted as HTML.
Specifies whether HTML is enabled or not.
Not supported in Windows and Windows Store builds. For more details please see: https://support.microsoft.com/en-us/help/268440/info-mapi-is-not-suitable-for-html-messages and https://social.msdn.microsoft.com/Forums/en-US/8125da13-7d79-4a5a-82a5-57c8a322be78/uwp10240c-emailmessage-with-emailmessagebodykindhtml
| 
 | getset | 
Gets or sets email message subject.
Subject.
| 
 | get | 
A collection of "To" recipients.
 1.8.14
 1.8.14