System.Net.Mail.SmtpClient.Host Property

Gets or sets the name or IP address of the host used for SMTP transactions.


public string Host { get; set; }


Documentation for this section has not yet been entered.


The value of the SmtpClient.Host property can also be set using constructors or the application or machine configuration file. For more information, see mailSettings for

If information is specified using this property, this information overrides the configuration file settings.


Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0