MessageId Property

<< Click to Display Table of Contents >>

Navigation:  Reference > MailMessage >

MessageId Property

 

MessageId property specifies ID of e-mail message.

 

Syntax

 

[Visual Basic]


objMailMessage.MessageId = "123456abc@myisp.com"

 

[VBScript]


objMailMessage.MessageId = "123456abc@myisp.com"

 

[C#]


objMailMessage.MessageId = "123456abc@myisp.com";

 

[C++]


HRESULT get_MessageId(BSTR*);

HRESULT put_MessageId(BSTR);

 

spMailMessage->PutMessageId("123456abc@myisp.com");

 

 

Remarks

 

MessageId is globally unique ID of e-mail message. Default value of MessageId property is empty string. In most cases application should not specify ID of the message because it will be assigned by AddEmail or by the outgoing mail server.