SPEmailMessage.Sender Property
Gets the sender of the e-mail message.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public ReadOnly Property Sender As String
Get
'Usage
Dim instance As SPEmailMessage
Dim value As String
value = instance.Sender
public string Sender { get; }
Property Value
Type: System.String
A string that contains the name of the sender.
Remarks
The Sender property usually returns the RFC 821 MAIL FROM envelope sender. Use the EnvelopeSender property to return the envelope sender. If the envelope sender is blank, the Sender property returns the RFC 822 FROM header.