Sdílet prostřednictvím


ReplyTo Property

Topic Last Modified: 2006-12-01

The address to which replies should be sent.

Applies To

IMessage Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Property ReplyTo As String

HRESULT get_ReplyTo(BSTR* pVal);HRESULT put_ReplyTo(BSTR Val);

Parameters

  • pVal
    Returns the value of the ReplyTo property as a reference to a BSTR.
  • Val
    Sets the value of the ReplyTo property to the value of the BSTR.

Remarks

This property is also available as the reply-to Field.

The string in the ReplyTo property should represent a single messaging user designated by a full messaging address. For example, all of the following formats qualify as the full messaging address for "User Address:"

"User Address" <UserAddress@example.com>
<UserAddress@example.com>
UserAddress@example.com

Multiple addresses are not recommended in the ReplyTo property. The SMTP protocol requires that the ReplyTo property must designate a single messaging user. The name of a list or a group is not allowed. However, replies can also be copied to addresses given in the To, CC, and BCC properties.

If ReplyTo is not set, the Reply and ReplyAll methods address the reply to the messaging address in the From property.

The default value of ReplyTo is an empty string.

See Also

Other Resources

reply-to Field