MailMessage Constructor ()

 

Initializes an empty instance of the MailMessage class.

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

public MailMessage()

From is set to the value in the network element for mailSettings<smtp> Element (Network Settings), if it exists.

.NET Framework
Available since 2.0
Return to top
Show: