<< Click to Display Table of Contents >> Navigation: Reference > MailMessage > Overview |
MailMessage object represents e-mail message and contains all message data: sender, recipients, subject, body, attachments etc.
Syntax:
[Visual Basic]
Dim objMailMessage As New AddEmailLib.MailMessage
objMailMessage.MessageSubject = "test"
[VBScript]
Dim objMailMessage
Set objMailMessage = CreateObject("AddEmail.MailMessage")
objMailMessage.MessageSubject = "test"
[C#]
AddEmailLib.MailMessageClass objMailMessage = new AddEmailLib.MailMessageClass();
objMailMessage.MessageSubject = "test";
[C++]
AddEmailLib::IMailMessagePtr spMailMessage;
spMailMessage.CreateInstance(__uuidof(AddEmailLib::MailMessage));
spMailMessage->PutMessageSubject("test");
Properties:
Sender of e-mail message. |
|
Reply-to address. |
|
Subject of e-mail message. |
|
Body of e-mail message. |
|
Format of the body of e-mail message. |
|
Encoding of the body of e-mail message. |
|
Character set of the body of e-mail message. |
|
Alternative text-only body of e-mail message. |
|
Encoding of the alternative body of e-mail message. |
|
Character set of the alternative body of e-mail message. |
|
Priority of e-mail message. |
|
Id of e-mail message. |
|
Filename of the file that contains body of e-mail message. |
|
Request a read receipt for the message. |
Methods:
Adds recipient to the To field of e-mail message. |
|
Adds recipient to the Cc field of e-mail message. |
|
Adds recipient to the Bcc field of e-mail message. |
|
Adds attachment to e-mail message. |
|
Adds header value to e-mail message. |
|
Clears list of attachments. |
|
Clears list of recipients in the To field of e-mail message. |
|
Clears list of recipients in the Cc field of e-mail message. |
|
Clears list of recipients in the Bcc field of e-mail message. |
|
Imports HTML file with embedded images. |