MessageBodyFile Property

<< Click to Display Table of Contents >>

Navigation:  Reference > MailMessage >

MessageBodyFile Property

 

MessageBodyFile property specifies filename of the file that contains main body of e-mail message.

 

Syntax

 

[Visual Basic]


objMailMessage.MessageBodyFile = "test.html"

 

[VBScript]


objMailMessage.MessageBodyFile = "test.html"

 

[C#]


objMailMessage.MessageBodyFile = "test.html";

 

[C++]


HRESULT get_MessageBodyFile(BSTR*);

HRESULT put_MessageBodyFile(BSTR);

 

spMailMessage->PutMessageBodyFile("test.html");

 

 

Remarks

 

Instead of supplying message body using MessageBody property, application can set MessageBodyFile property to the filename of the file that contains the body. AddEmail will read message body from the supplied file. Please note that specified file is not loaded to memory immediately and must exist until the message is sent.