MailMessage.MailMessage

MailMessage(string, string)

Initializes a new instance of the MailMessage class

public MailMessage(string from, string to)
ParameterTypeDescription
fromStringSender address
toStringRecipient address

See Also


MailMessage()

Initializes a new instance of the MailMessage class

public MailMessage()

See Also


MailMessage(string, string, string, string)

Initializes a new instance of the MailMessage class

public MailMessage(string from, string to, string subject, string body)
ParameterTypeDescription
fromStringSender address
toStringRecipient address
subjectStringMessage subject
bodyStringMessage body

See Also


MailMessage(MailAddress, MailAddress)

Initializes a new instance of the MailMessage class

public MailMessage(MailAddress from, MailAddress to)
ParameterTypeDescription
fromMailAddressSender address
toMailAddressRecipient address

See Also