SmtpClient Constructor
Collapse the table of content
Expand the table of content

SmtpClient Constructor

 

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:
© 2016 Microsoft