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
MailAddress | from |
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. |
string | bodyPlain |
Plain-text version of the e-mail. |
string | bodyHtml |
HTML version of the e-mail. |