SmtpClient Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the SmtpClient class.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSmtpClient()

Initializes a new instance of the SmtpClient class by using configuration file settings.

System_CAPS_pubmethodSmtpClient(String)

Initializes a new instance of the SmtpClient class that sends e-mail by using the specified SMTP server.

System_CAPS_pubmethodSmtpClient(String, Int32)

Initializes a new instance of the SmtpClient class that sends e-mail by using the specified SMTP server and port.

Return to top
Show: