<< Click to Display Table of Contents >> Navigation: Reference > MailAttachment > Overview |
MailAttachment object represents message attachment.
Syntax:
[Visual Basic]
Dim objMailAttachment As New AddEmailLib.MailAttachment
objMailAttachment.File = "c:\files\document.pdf"
[VBScript]
Dim objMailAttachment
Set objMailAttachment = CreateObject("AddEmail.MailAttachment")
objMailAttachment.File = "c:\files\document.pdf"
[C#]
AddEmailLib.MailAttachmentClass objMailAttachment = new AddEmailLib.MailAttachmentClass();
objMailAttachment.File = "c:\\files\\document.pdf";
[C++]
AddEmailLib::IMailAttachmentPtr spMailAttachment;
spMailAttachment.CreateInstance(__uuidof(AddEmailLib::MailAttachment));
spMailAttachment->PutFile( "c:\\files\\document.pdf" );
Properties:
Filename of the attachment file. |
|
Name of the attachment as it should appear in e-mail message. |
|
Encoding of the attachment. |
|
Content type of the attachment. |
|
Character set of the attachment. |
|
Specifies whether the attachment is inline, e.g. embedded in e-mail message. |
|
Content Id of the attachment. |
Methods:
Loads attachment data from memory instead of file. |