ReplyTo Property
Previous  Top  Next


ReplyTo property specifies e-mail address to reply to.

Syntax

[Visual Basic]


Dim
 objMailAddress As New AddEmailLib.MailAddress
objMailAddress.Address = "me@myisp.com"
objMailMessage.ReplyTo = objMailAddress

[VBScript]


Dim
 objMailAddress
Set 
objMailAddress = CreateObject("AddEmail.MailAddress")
objMailAddress.Address = "me@myisp.com"
objMailMessage.ReplyTo = objMailAddress

[C#]


AddEmailLib.MailAddressClass objMailAddress = new
 AddEmailLib.MailAddressClass();
objMailAddress.Address = "me@myisp.com";
objMailMessage.ReplyTo = objMailAddress;

[C++]


HRESULT get_ReplyTo(IMailAddress**);
HRESULT put_ReplyTo(IMailAddress*);

AddEmailLib::IMailAddressPtr spMailAddress;
spMailAddress.CreateInstance(__uuidof
(AddEmailLib::MailAddress));
spMailAddress->PutAddress("me@myisp.com");
spMailMessage->PutReplyTo(spMailAddress);


Remarks

Set ReplyTo property to the prepared MailAddress object containing e-mail address and optional name of a person who should receive a reply. E-mail address and name will be used when recipient replies to the message. This property is optional and can be empty. If ReplyTo is not set e-mail address and name from the Sender property will be used when replying to the message.