Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void SendEmail(MailAddress, IEnumerable<MailAddress>, IEnumerable<string>, string, string)

Declaration

public void SendEmail(
    MailAddress from,
    IEnumerable<MailAddress> to,
    IEnumerable<string> headers,
    string bodyPlain,
    string bodyHtml
)

Summary

Sends an email with fully custom headers.

Parameters

MailAddressfrom The "envelope From" address presented to the MTA.
IEnumerable<MailAddress>to The "envelope To" address presented to the MTA.
IEnumerable<string>headers Zero or more headers. Headers must be in the correct format, including escaping, and excluding the linebreak that separates headers (but including any line breaks required within the header). This method does not validate the headers in any way, and does not include From, To, Date or any other headers unless explicitly passed in through this argument.
stringbodyPlain Plain-text version of the e-mail.
stringbodyHtml HTML version of the e-mail.