Documentation
¶
Index ¶
- type Mailer
- type SendMail
- func (sm *SendMail) AddAttachment(filePath string) (contentId string, err error)
- func (sm *SendMail) Bcc(bccuser []string) *SendMail
- func (sm *SendMail) Cc(ccuser []string) *SendMail
- func (sm *SendMail) From(fromuser string) *SendMail
- func (sm *SendMail) Send(message string) (err error)
- func (sm *SendMail) SetHtml() *SendMail
- func (sm *SendMail) SetText() *SendMail
- func (sm *SendMail) SetType(bodyType string) *SendMail
- func (sm *SendMail) Subject(subject string) *SendMail
- func (sm *SendMail) To(touser []string) *SendMail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type SendMail ¶ added in v0.5.7
type SendMail struct {
// contains filtered or unexported fields
}
func (*SendMail) AddAttachment ¶ added in v0.5.7
添加附件
Click to show internal directories.
Click to hide internal directories.