MailMessageFrom Property
Gets or sets the e-mail address of the message sender.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public EmailAddress From { get; set; }

Property Value

Type: EmailAddress
An EmailAddress object containing the e-mail address of the message sender.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionvalue is a null reference (Nothing in Visual Basic).
Remarks
The value of this property is taken from From header.

To specify it as a string, set msg.From.AsString value (assuming msg is MailMessage instance).

If you need to deal with international e-mail addresses (IDN domains), use FromIdnAddress and ToIdnAddress methods to convert e-mail addresses between human-readable and SMTP-safe formats.

Examples
The example is available in MailMessage topic.
See Also