Versions in this module Expand all Collapse all v0 v0.2.0 May 5, 2019 Changes in this version + func Send(credentials *Credentials, data *Data) error + type Attachment struct + Data []byte + Filename string + Inline bool + type Credentials struct + Address string + Hostname string + Name string + Password string + Port string + type Data struct + Attachments map[string]*Attachment + BCC []string + Body string + BodyContentType string + CC []string + From mail.Address + Headers []Header + ReplyTo string + Subject string + To []string + func (d *Data) AddAttachmentFromBuffer(filename string, buffer []byte, inline bool) error + func (d *Data) AddAttachmentFromFile(file string, inline bool) error + func (d *Data) AddHeader(key string, value string) Header + func (d *Data) GetRecipients() []string + func (d *Data) ToByteArray() []byte v0.1.0 Jan 2, 2019 Changes in this version + const MessageTypeHTML + const MessageTypePlain + type Email struct + Credentials *EmailCredentials + Data *EmailData + func (e *Email) Send() error + type EmailAttachment struct + Data []byte + Filename string + Inline bool + type EmailCredentials struct + Address string + Hostname string + Name string + Password string + Port string + type EmailData struct + Attachments map[string]*EmailAttachment + BCC []string + Body string + BodyContentType string + CC []string + From mail.Address + Headers []Header + ReplyTo string + Subject string + To []string + func (ed *EmailData) AddAttachment(file string, inline bool) error + func (ed *EmailData) AddHeader(key string, value string) Header + func (ed *EmailData) AttachBuffer(filename string, buf []byte, inline bool) error + func (ed *EmailData) GetRecipients() []string + func (ed *EmailData) ToByteArray() []byte + type Header struct + Key string + Value string