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.2.0 build 630 for .NET 4.5
public EmailAddress From { get; set; }

Property Value

Type: EmailAddress
An EmailAddress object containing the e-mail address of the message sender.
MailBeeInvalidArgumentExceptionvalue is a null reference (Nothing in Visual Basic).
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.

The example is available in MailMessage topic.
See Also