Name Property

<< Click to Display Table of Contents >>

Navigation:  Reference > MailAddress >

Name Property

 

Name property specifies name of recipient or sender as it should appear in the e-mail.

 

Syntax

 

[Visual Basic]


objMailAddress.Name = "John Smith"

 

[VBScript]


objMailAddress.Name = "John Smith"

 

[C#]


objMailAddress.Name = "John Smith";

 

[C++]


HRESULT get_Name(BSTR*);

HRESULT put_Name(BSTR);

 

spMailAddress->PutName("John Smith");

 

 

Remarks

 

If Name property is an empty string, only e-mail address will be displayed in the e-mail message.