Name Property

<< Click to Display Table of Contents >>

Navigation:  Reference > MailAttachment >

Name Property

 

Name property specifies name of the attachment as it should appear in the e-mail.

 

Syntax

 

[Visual Basic]


objMailAttachment.Name = "Report 2004.Pdf"

 

[VBScript]


objMailAttachment.Name = "Report 2004.Pdf"

 

[C#]


objMailAttachment.Name = "Report 2004.Pdf";

 

[C++]


HRESULT get_Name(BSTR*);

HRESULT put_Name(BSTR);

 

spMailAttachment->PutName( "Report 2004.Pdf" );

 

 

Remarks

 

Default value of Name property is an empty string. If Name is an empty string, name part of the filename specified in the File property is used.