Nucleus .Net Core CMS

Mail.IMailClientFactory Interface

Namespace: Nucleus.Abstractions.Mail
Assembly: Nucleus.Abstractions.dll
Creates instances of IMailClient

Methods

Create (Site) Method

Create (Site site)
Create a new instance of the Mail.IMailClient class for the specifed site.
Parameters
Name Type
site Nucleus.Abstractions.Models.Site
Remarks
This constructor is for use by code which is not running in the context of a Http request, such as a scheduled task. For other uses, get an instance of this class from dependency injection by including a parameter in your class constructor.