Mail.MailClientBase Class
Namespace: Nucleus.Abstractions.Mail
Assembly: Nucleus.Abstractions.dll
Base implementation of
Mail.IMailClient which includes an implementation of the
Site property, and shared methods used to create emails.
Properties
SettingsPath
Property
Generate a fully qualified path to the settings (cshtml) partial view for the mail client.
Site
Property
Specifies the
Site that is using this instance.
Methods
BuildDefaultCss
BuildDefaultCss ()
Returns a style element (as a string) containing default mail css.
Dispose
Dispose ()
Dispose of resources.
GetSettings
(Site) Method
GetSettings (Nucleus.Abstractions.Models.Site)
Return the extended settings type for the mail client.
Send<TModel>
(MailTemplate, <TModel>, String) Method
Send<TModel> (MailTemplate template, <TModel> model, String to)
Parse the specified template, and send the resulting email to the specified to address.
SetSettings
(Site, IMailSettings) Method
SetSettings (Nucleus.Abstractions.Models.Site, Nucleus.Abstractions.Mail.IMailSettings)
Save the settings for the mail client.