更新
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package mailx
|
||||
|
||||
// EmailSendStatus 邮件发送状态
|
||||
type EmailSendStatus int
|
||||
|
||||
const (
|
||||
EmailSendStatusUnknown EmailSendStatus = 0
|
||||
EmailSendStatusSuccess EmailSendStatus = 1
|
||||
EmailSendStatusInvalidAddress EmailSendStatus = 2
|
||||
EmailSendStatusSpam EmailSendStatus = 3
|
||||
EmailSendStatusFailed EmailSendStatus = 4
|
||||
)
|
||||
|
||||
// EmailSendRecord 邮件发送记录(用于通道回传发送状态)
|
||||
type EmailSendRecord struct {
|
||||
AccountName string // 发件人
|
||||
UpdateTime int64 // 毫秒时间戳
|
||||
Status EmailSendStatus // 状态
|
||||
ToUser string // 收件人
|
||||
Subject string // 邮件主题
|
||||
ErrorMessage string // 错误信息
|
||||
}
|
||||
Reference in New Issue
Block a user