System.Net.Mail.SmtpClient.Host Property

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

Syntax

public string Host { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

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 system.net.

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

Requirements

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