SmtpClientEmailService Class

基于 SmtpClient 实现的 Email 服务。

Definition

Namespace: QuickAdmin.Service.Auth
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.1.6
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)

Methods

Public Methods

ClearCode 清除验证代码。
(Inherited from EmailService)
SendCode 发送验证代码。
(Inherited from EmailService)
VerifyCode 验证验证代码。
(Inherited from EmailService)

Protected Methods

BeforeSend 发送前执行的操作。
(Inherited from EmailService)
CheckEmail 检查邮箱地址。
(Inherited from EmailService)
OnSendCode 执行发送操作。
(Overrides EmailServiceOnSendCode(int, string, string))

See Also