Sender Property

Topic Last Modified: 2006-12-01

The address of the user or agent that actually submits the message.

Applies To

IMessage Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Property Sender As String

HRESULT get_Sender(BSTR* pVal);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).