Documentation ¶
Index ¶
- type EmailUtil
- func (m *EmailUtil) Init(from string, userName string, password string, addr string, host string) *EmailUtil
- func (m *EmailUtil) SendEmail() (bool, error)
- func (m *EmailUtil) SetBcc(bcc []string) *EmailUtil
- func (m *EmailUtil) SetCc(cc []string) *EmailUtil
- func (m *EmailUtil) SetContent(content string) *EmailUtil
- func (m *EmailUtil) SetSubject(subject string) *EmailUtil
- func (m *EmailUtil) SetTo(to []string) *EmailUtil
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailUtil ¶
type EmailUtil struct {
// contains filtered or unexported fields
}
EmailUtil 邮件实体
func (*EmailUtil) Init ¶
func (m *EmailUtil) Init(from string, userName string, password string, addr string, host string) *EmailUtil
Init 初始化
func (*EmailUtil) SetContent ¶
SetContent 设置文件发送的内容
func (*EmailUtil) SetSubject ¶
SetSubject 设置主题
Click to show internal directories.
Click to hide internal directories.