MailMill .NET Class Library

Mail.From Property

Gets or sets a string that specifies the sender's email address.

public string From {get; set;}

Remarks

The From property contains the email address that will be displayed in the From message field. This property is mandatory to Send a message.

Exceptions

Exception Type Condition
MailMillException From is set with an invalid email address

Example

This sample shows how to set the sender email address.

Mail oMail = new Mail();
oMail.From = "Kate <kate@emilltest.com>"

See Also

Mail Class | MailMill Namespace | Send