SmtpServer.MailFrom Property

Gets or sets the e-mail address in MAIL FROM command. This property is now obsolete. Please use SmtpMail.ReturnPath property.

[Visual Basic]
Public Property MailFrom As String
public string MailFrom {get; set;}
public: __property String* get_MailFrom();
public: __property void set_MailFrom(String*);
public function get MailFrom() : String;
public function set MailFrom(String);

Property Value

A string value indicating the address for MAIL FROM command. By default, the address of From property of SmtpMail class is used. It is not recommended to set the value for this property except you want to get the failure-delivery report in another e-mail address.

See Also

SmtpMail.ReturnPath property
User Authentication and SSL Connection
From, ReplyTo, Sender and Return-Path