Nucleus .Net Core CMS

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.
Generate a fully qualified path to the settings (cshtml) partial view for the mail client.
Remarks
Return null or an empty string if there is no settings view for the mail client.
Specifies the Site that is using this instance.
BuildDefaultCss ()
Returns a style element (as a string) containing default mail css.
Remarks
The returned style element is added to the lt;head> element of generated emails.
Dispose ()
Dispose of resources.
GetSettings (Nucleus.Abstractions.Models.Site)
Return the extended settings type for the mail client.
Remarks
Returns null if there is no settings view for the mail client.
Send<TModel> (MailTemplate template, <TModel> model, String to)
Parse the specified template, and send the resulting email to the specified to address.
Type Parameters
TModel
Parameters
Name Type
template Nucleus.Abstractions.Models.Mail.MailTemplate
model <TModel>
to String
SetSettings (Nucleus.Abstractions.Models.Site,  Nucleus.Abstractions.Mail.IMailSettings)
Save the settings for the mail client.