Declaration
public static void SendEmail(
IEnumerable<MailAddress> to,
string subject,
string bodyPlain = null,
string bodyHtml = null,
string account = null,
string fromName = null
)
Summary
Sends an email using one of the pre-configured RT.Emailer SMTP accounts. If none are configured on this
computer, an exception will be thrown, describing what the user needs to do - though this requires a pretty
technical user.
Parameters
IEnumerable<MailAddress> | to |
The recipients of the email. |
string | subject |
Subject line. |
string | bodyPlain |
Body of the message in plaintext format, or null to omit this MIME type. |
string | bodyHtml |
Body of the message in HTML format, or null to omit this MIME type. |
string | account |
The name of one of the RT.Emailer accounts to use (case-sensitive). If null or not defined, will fall back to
exe name, then the Default Account setting, and then any defined account, in this order. |
string | fromName |
The text to use as the "from" name. If null, will use the executable name. This setting has no effect if the
specified RT.Emailer account specifies a FromName of its own. |