Documentation
¶
Index ¶
- Constants
- func ParseContentTypeWithExt(fileNameWithExt string) string
- type Attachment
- type Message
- func (m *Message) AddAttachment(attachment *Attachment)
- func (m *Message) AddBCC(c string)
- func (m *Message) AddCC(c string)
- func (m *Message) AddTo(tos ...string)
- func (m *Message) AttachFile(fileName string) error
- func (m *Message) Reset()
- func (m *Message) SetFrom(name, from string)
- func (m *Message) SetHTML(html string)
- func (m *Message) SetSubject(subject string)
- func (m *Message) SetText(text string)
- type XMailer
Constants ¶
View Source
const LocalName = "localhost"
LocalName 本地主机名
Variables ¶
This section is empty.
Functions ¶
func ParseContentTypeWithExt ¶
ParseContentTypeWithExt
Types ¶
type Attachment ¶
Attachment 附件对象
type Message ¶
type Message struct { Subject string FromAddr string FromName string To []string CC []string Bcc []string Text string HTML string Attachments []*Attachment }
Message 邮件消息体
func (*Message) AddAttachment ¶
func (m *Message) AddAttachment(attachment *Attachment)
func (*Message) AttachFile ¶
func (*Message) SetSubject ¶
Click to show internal directories.
Click to hide internal directories.