PowerTCP Mail for .NET
Sender Property




Gets or sets the email address of the sender of the email.
Syntax
Public Property Sender As String
Dim instance As MailMessage
Dim value As String
 
instance.Sender = value
 
value = instance.Sender
public string Sender {get; set;}
public: __property string* get_Sender();
public: __property void set_Sender( 
   string* value
);
public:
property String^ Sender {
   String^ get();
   void set (    String^ value);
}

Property Value

Decoded email address. Decoded email address.
Remarks

Setting this property adds the "Sender:" header line to the message. It should be included if the From includes multiple addresses, or the sending agent is different. Setting this property to null or empty will remove the header field from the header.

When set, the address format is standardized and the "friendly name" is word-encoded using HeaderDictionary.Encoding.

See Also

Reference

MailMessage Class
MailMessage Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic