Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: void SendEmail(IEnumerable<MailAddress>, string, string, string, string, string)

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.
stringsubject Subject line.
stringbodyPlain Body of the message in plaintext format, or null to omit this MIME type.
stringbodyHtml Body of the message in HTML format, or null to omit this MIME type.
stringaccount 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.
stringfromName 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.