Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CRLF = []byte("\r\n")
CRLF defines the newline
Functions ¶
This section is empty.
Types ¶
type AddressList ¶
AddressList defines a list of mail.Address
func (AddressList) List ¶
func (list AddressList) List() []string
List returns the list of mail address
func (AddressList) String ¶
func (list AddressList) String() string
type Attachment ¶
Attachment for mail
type Mail ¶
type Mail struct { Subject string PlainText []byte HTML []byte Attachments []*Attachment }
Mail body for smtp
func (*Mail) AppendAttachment ¶ added in v0.4.8
func (mail *Mail) AppendAttachment(attachment *Attachment)
AppendAttachment appends an attachment
type SMTP ¶
type SMTP struct {
// contains filtered or unexported fields
}
A SMTP to send mails
type SendError ¶
type SendError struct { Message string From *mail.Address To AddressList }
SendError records send a mail error
type SendErrors ¶ added in v0.4.8
type SendErrors struct {
Errors []*SendError
}
SendErrors records send mails error
func (*SendErrors) Error ¶ added in v0.4.8
func (err *SendErrors) Error() string
Click to show internal directories.
Click to hide internal directories.