SmtpClientLocalDomain Property

Get or set the local domain.

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public string? LocalDomain { get; set; }

Property Value

String
The local domain.

Implements

ISmtpClientLocalDomain

Remarks

The local domain is used in the HELO or EHLO commands sent to the SMTP server. If left unset, the local IP address will be used instead.

See Also