Documentation ¶
Index ¶
- Variables
- type Attachment
- type Message
- func (m *Message) Send() (err error)
- func (m *Message) SetAttachment(filename string) error
- func (m *Message) SetBcc(bcc []string)
- func (m *Message) SetBodyHTML(content []byte)
- func (m *Message) SetBodyPlainText(content []byte)
- func (m *Message) SetCc(cc []string)
- func (m *Message) SetFrom(from string)
- func (m *Message) SetSubject(subject string)
- func (m *Message) SetTo(to []string)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyAttachment = errors.New("attachment is empty")
View Source
var ErrEmptyBody = errors.New("body is empty")
View Source
var ErrEmptyFrom = errors.New("from is empty")
View Source
var ErrEmptyHost = errors.New("host is empty")
View Source
var ErrEmptyPassword = errors.New("password is empty")
View Source
var ErrEmptyPort = errors.New("port is empty")
View Source
var ErrEmptySubject = errors.New("subject is empty")
View Source
var ErrEmptyTo = errors.New("to is empty")
View Source
var ErrEmptyUsername = errors.New("username is empty")
View Source
var ErrFileNotFound = errors.New("file not found")
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Message ¶
type Message struct { Options Options // contains filtered or unexported fields }
func (*Message) SetAttachment ¶
SetAttachment set attachment to email message param name is either path to file or url
func (*Message) SetBodyHTML ¶
func (*Message) SetBodyPlainText ¶
func (*Message) SetSubject ¶
Click to show internal directories.
Click to hide internal directories.