Overview

<< 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:

 

File

Filename of the attachment file.

Name

Name of the attachment as it should appear in e-mail message.

Encoding

Encoding of the attachment.

ContentType

Content type of the attachment.

Charset

Character set of the attachment.

Inline

Specifies whether the attachment is inline, e.g. embedded in e-mail message.

ContentId

Content Id of the attachment.

 

Methods:

 

LoadFromMemory

Loads attachment data from memory instead of file.