Documentation
¶
Index ¶
- Constants
- func AddToQueue(task EmailTask) error
- func SendActivationEmail(to, username, token string) error
- func SendPasswordResetEmail(to, username, token string) error
- func SendTestEmailWithConfig(config pageConfig.MailSettingsConfig, testEmail string) error
- func StartEmailProcessor()
- type EmailTask
Constants ¶
View Source
const ( MaxRetries = 3 // 最大重试次数 RetryInterval = time.Second * 5 // 重试间隔 BatchSize = 10 // 每次处理的任务数量 )
Variables ¶
This section is empty.
Functions ¶
func SendActivationEmail ¶
func SendPasswordResetEmail ¶ added in v0.0.9
SendPasswordResetEmail 发送密码重置邮件
func SendTestEmailWithConfig ¶ added in v0.0.8
func SendTestEmailWithConfig(config pageConfig.MailSettingsConfig, testEmail string) error
SendTestEmailWithConfig 使用指定配置发送测试邮件
Types ¶
Click to show internal directories.
Click to hide internal directories.