Show / Hide Table of Contents

Class MailKitSmtpEmailSender

Inheritance
object
EmailSenderBase
MailKitSmtpEmailSender
Implements
IMailKitSmtpEmailSender
IEmailSender
Inherited Members
EmailSenderBase.SendAsync(string, string, string, bool, AdditionalEmailSendingArgs)
EmailSenderBase.SendAsync(string, string, string, string, bool, AdditionalEmailSendingArgs)
EmailSenderBase.BuildMailMessage(string, string, string, string, bool, AdditionalEmailSendingArgs)
EmailSenderBase.SendAsync(MailMessage, bool)
EmailSenderBase.QueueAsync(string, string, string, bool, AdditionalEmailSendingArgs)
EmailSenderBase.QueueAsync(string, string, string, string, bool, AdditionalEmailSendingArgs)
EmailSenderBase.NormalizeMailAsync(MailMessage)
EmailSenderBase.ValidateEmailAddressAsync(string)
EmailSenderBase.Logger
EmailSenderBase.CurrentTenant
EmailSenderBase.Configuration
EmailSenderBase.BackgroundJobManager
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.MailKit
Assembly: Volo.Abp.MailKit.dll
Syntax
[Dependency(ServiceLifetime.Transient, ReplaceServices = true)]
public class MailKitSmtpEmailSender : EmailSenderBase, IMailKitSmtpEmailSender, IEmailSender

Constructors

MailKitSmtpEmailSender(ICurrentTenant, ISmtpEmailSenderConfiguration, IBackgroundJobManager, IOptions<AbpMailKitOptions>)

Declaration
public MailKitSmtpEmailSender(ICurrentTenant currentTenant, ISmtpEmailSenderConfiguration smtpConfiguration, IBackgroundJobManager backgroundJobManager, IOptions<AbpMailKitOptions> abpMailKitConfiguration)
Parameters
Type Name Description
ICurrentTenant currentTenant
ISmtpEmailSenderConfiguration smtpConfiguration
IBackgroundJobManager backgroundJobManager
IOptions<AbpMailKitOptions> abpMailKitConfiguration

Properties

AbpMailKitOptions

Declaration
protected AbpMailKitOptions AbpMailKitOptions { get; }
Property Value
Type Description
AbpMailKitOptions

SmtpConfiguration

Declaration
protected ISmtpEmailSenderConfiguration SmtpConfiguration { get; }
Property Value
Type Description
ISmtpEmailSenderConfiguration

Methods

BuildClientAsync()

Declaration
public Task<SmtpClient> BuildClientAsync()
Returns
Type Description
Task<SmtpClient>

ConfigureClient(SmtpClient)

Declaration
protected virtual Task ConfigureClient(SmtpClient client)
Parameters
Type Name Description
SmtpClient client
Returns
Type Description
Task

GetSecureSocketOption()

Declaration
protected virtual Task<SecureSocketOptions> GetSecureSocketOption()
Returns
Type Description
Task<SecureSocketOptions>

SendEmailAsync(MailMessage)

Declaration
protected override Task SendEmailAsync(MailMessage mail)
Parameters
Type Name Description
MailMessage mail
Returns
Type Description
Task
Overrides
EmailSenderBase.SendEmailAsync(MailMessage)

Implements

IMailKitSmtpEmailSender
IEmailSender

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform