SmtpClientEmailService Class

基于 SmtpClient 实现的 Email 服务。

Definition

Namespace: QuickAdmin.Service.Auth
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.2.30
C#
public class SmtpClientEmailService : EmailService
Inheritance
object    EmailService    SmtpClientEmailService

Remarks

此实现类内发送邮件时始终启用 SSL。SMTP 相关配置取自 SMTP
官方已不建议使用 SmtpClient,可自行改用其他库重新实现 Email 服务。

Constructors

SmtpClientEmailServiceInitializes a new instance of the SmtpClientEmailService class

Properties

Public Properties

LastEmail 获取有效期内最后发送的邮箱地址。
(Inherited from EmailService)

Protected Properties

CodeTimeoutMinutes 验证代码有效期,单位:分钟。
(Inherited from EmailService)
exService 异常日志服务。
(Inherited from EmailService)
logger 系统日志。
(Inherited from EmailService)

Methods

Public Methods

ClearCodeAsync 清除验证代码。
(Inherited from EmailService)
SendCodeAsync 发送验证代码。
(Inherited from EmailService)
VerifyCodeAsync 验证验证代码。
(Inherited from EmailService)

Protected Methods

BeforeSendAsync 发送前执行的操作。
(Inherited from EmailService)
CheckEmailAsync 检查邮箱地址。
(Inherited from EmailService)
OnSendCodeAsync 执行发送操作。
(Overrides EmailServiceOnSendCodeAsync(int, string, string))

See Also