ReceivedFrom Property

Get or set the name of the source host.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public string? From { get; set; }

Property Value

String
The name of the source host if available; otherwise, .

Remarks

Gets or sets the "from" clause which identifies the name of the sending host as presented in the HELO or EHLO SMTP command. This may be a domain name or an address literal (e.g., [192.168.1.1]).

Exceptions

ArgumentException The value is not a valid domain name or address literal.

See Also