Documentation ¶ Index ¶ func Send(address, username, password string, m *Message) error type Email func New(address string) *Email func (e *Email) Send(m *Message) error type File type Message Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Send ¶ func Send(address, username, password string, m *Message) error send email Types ¶ type Email ¶ type Email struct { Auth smtp.Auth Template *template.Template // contains filtered or unexported fields } func New ¶ func New(address string) *Email func (*Email) Send ¶ func (e *Email) Send(m *Message) error type File ¶ type File struct { Name string Type string Content string } type Message ¶ type Message struct { From string To string CC string Subject string Text string HTML string TemplateName string TemplateData interface{} Inlines []*File Attachments []*File // contains filtered or unexported fields } Source Files ¶ View all Source files email.go Click to show internal directories. Click to hide internal directories.