Documentation ¶
Index ¶
- Constants
- type Attach
- type Client
- type Config
- type Message
- func (msg *Message) WithAttach(attach ...Attach) *Message
- func (msg *Message) WithBCC(bcc ...string) *Message
- func (msg *Message) WithCC(cc ...string) *Message
- func (msg *Message) WithDate(date time.Time) *Message
- func (msg *Message) WithHtml(html string) *Message
- func (msg *Message) WithReceiver(receiver ...string) *Message
- func (msg *Message) WithSender(sender string) *Message
- func (msg *Message) WithText(text string) *Message
- func (msg *Message) WithTitle(title string) *Message
- type Option
Constants ¶
View Source
const ( HostQQMail = "smtp.qq.com" HostExmail = "smtp.exmail.qq.com" PortQQMail = 25 PortExmail = 465 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithConfig ¶
type Message ¶
type Message struct { // Sender 发件者邮箱地址 Sender string // Receiver 收件者邮箱地址 Receiver []string // Title 邮件标题 Title string // Text 邮件文本内容, 设置后 Html 失效 Text string // 邮件HTML富文本内容, 设置后 Text 失效 Html string // Date 发件时间 Date time.Time // CC 抄送人邮箱地址 CC []string // BCC 密送人邮箱地址 BCC []string Attach []Attach }
func NewMessage ¶
func NewMessage() *Message
func (*Message) WithAttach ¶
func (*Message) WithReceiver ¶
func (*Message) WithSender ¶
Click to show internal directories.
Click to hide internal directories.