Sender Property

Sender 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 address of the user or agent that actually submits the message.

Applies To

IMessage Interface

IWorkflowMessage Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Property Sender As String

[C++]HRESULT get_Sender(BSTRpVal);
HRESULT put_Sender(BSTR Val);

Parameters

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

Remarks

The distinction between the From Property and the Sender property is that the Sender property identifies the address of the user or entity that actually submits the message, whereas the From Property designates its principal author or authors. By convention (RFC 822), multiple addresses are not identified in the Sender property.

The Sender property is normally used when:

  • There are multiple addresses in the From Property. The sender is the e-mail address of the person or entity in the From Property that actually submitted the message.
  • The person or entity that is submitting the message is not included in the From Property.

When posting a newsgroup message, the Sender property is not used; the From Property must be specified.

This property is also available as the urn:schemas:mailheader:sender field (sender Field) and the urn:schemas:httpmail:sender field (sender Field).

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.