Reply Method
Reply Method
The Reply method creates and returns another message that can be used to reply to the sender of this message.
Syntax
Function Reply() as CDO.MessageHRESULT Reply(IMessage** pVal);
Remarks
The Reply method puts the sender of this message in the To property of the new message but removes all other recipients and any attachments. The To property is normally set from the From property on this message, but if the ReplyTo property is set, it is used instead.
If the configuration field https://schemas.microsoft.com/cdo/configuration/usemessageresponsetext is set to True (VARIANT_TRUE), the original message is formatted as shown in the following example:
-----Original Message-----
From:"Person" <example@example.com>
Sent:Tue, 23 Mar 1998 12:41:37 -0800
To:"Person A" <example@example.com>
Subject:Hello There
The message response text is localized into the language specified by the https://schemas.microsoft.com/cdo/configuration/languagecode configuration field.