Documentation ¶
Index ¶
Constants ¶
View Source
const ( RecipientTo = "to" RecipientCc = "cc" RecipientBcc = "bcc" PriorityNormal = "normal" PriorityLow = "low" PriorityHigh = "high" )
Variables ¶
View Source
var ParseAddress = mail.ParseAddress
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { Name string Inline bool Attach io.ReadCloser }
Attachment 邮箱附件结构体
type Message ¶
type Message struct { From *Address //发件人 ReplyTo *Address //回复地址 Recipients map[string][]*Address //收件地址 Subject string //主题 TextBody string //超文本内容 HtmlBody string //文本内容 Attachments []*Attachment //附件 Priority string //优先级: normal, low, high DeliveryTime time.Time //定时发送 Tags []string //添加标签(某些第三方服务可用的功能) Tracking bool //允许追踪(某些第三方服务可用的功能) }
Message 邮箱消息结构体
func (*Message) AddRecipients ¶
AddRecipient 添加指定位置的收件人, recipientType: RecipientTo, RecipientCc, RecipientBcc
Click to show internal directories.
Click to hide internal directories.