File Property

<< Click to Display Table of Contents >>

Navigation:  Reference > MailAttachment >

File Property

 

File property specifies filename (including path) of the attachment file.

 

Syntax

 

[Visual Basic]


objMailAttachment.File = "c:\files\document.pdf"

 

[VBScript]


objMailAttachment.File = "c:\files\document.pdf"

 

[C#]


objMailAttachment.File = "c:\\files\\document.pdf";

 

[C++]


HRESULT get_File(BSTR*);

HRESULT put_File(BSTR);

 

spMailAttachment->PutFile("c:\\files\\document.pdf");

 

 

Remarks

 

Set File property to the full filename of the attachment. AddEmail will read attachment from the specified file. Please note that specified file is not loaded to memory immediately and must exist until the message is sent.