Summary
Implements a simple interface for sending an email that shares a global repository of SMTP settings. This
repository is stored using
SettingsFileXml<TSettings> using the name "RT.Emailer". The repository contains a list
of SMTP accounts with a unique name. One of the accounts may be designated as the default one if the application
doesn't specify any. The "From" address is fixed per account, but the name may be overridden by the application.
Static methods
void | SendEmail(IEnumerable<MailAddress> to, string subject, string bodyPlain = null, string bodyHtml = null, string account = null, string fromName = null) |
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. |
Static fields
LoggerBase | | If set, the SMTP client will log various messages to this log at various verbosity levels. |