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

Namespace: MailBee.Mime
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
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).

Examples
The example is available in MailMessage topic.
See Also