Partager via


ForwardTo Property

ForwardTo Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The ForwardTo property specifies the URL path to the recipient to which mail is forwarded.

Applies To

IMailRecipient Interface

Type Library

Microsoft CDO for Exchange Management Library

DLL Implemented In

CDOEXM.DLL

Syntax

[Visual Basic]Property ForwardTo As String

[C++]HRESULT get_ForwardTo(BSTRpVal);
HRESULT put_ForwardTo(BSTR Val);

Parameters

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

Remarks

This property is a URL to the mailbox recipient or mail-enabled recipient (such as a contact/distribution list/public folder object) to whom mail is forwarded. The default value for this property is NULL.

Whether e-mail is always forwarded to an alternative address or forwarded only when it cannot be delivered to the recipient depends on the value of the ForwardingStyle Property.

This property accepts both e-mail addresses and the Microsoft Windows Active Directory paths, yet in either case the addresses are converted to Active Directory paths.

For more information, see E-mail Addresses Stored as Active Directory Paths.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.