Versions in this module Expand all Collapse all v0 v0.2.1 Mar 12, 2020 Changes in this version + func Base64Encode(src []byte) []byte + func QEncode(src []byte, offset int) (dst []byte, pos int) + func QEncodeIfNeeded(src []byte, offset int) (dst []byte) + func QuotedPrintableEncode(src []byte) []byte + func SeemsValidAddr(addr string) bool + func Send(msg *Message, data interface{}) error + type Address struct + Addr string + Name string + func NewAddress(name, addr string) (*Address, error) + func (a *Address) Clone() *Address + func (a *Address) Domain() string + type CTE byte + const AutoCTE + const Base64 + const QuotedPrintable + type Message struct + func NewMessage(msg *Message) *Message + func QuickMessage(subject string, body ...string) *Message + func (m *Message) Attach(file ...string) *Message + func (m *Message) AttachFile(name, ctype, file string) *Message + func (m *Message) AttachObject(name, ctype string, data []byte) *Message + func (m *Message) Bcc(addr ...*Address) *Message + func (m *Message) Cc(addr ...*Address) *Message + func (m *Message) Compose(data interface{}) []byte + func (m *Message) Domain(domain string) *Message + func (m *Message) Errors() (errs []error) + func (m *Message) From(addr *Address) *Message + func (m *Message) FromAddr() string + func (m *Message) HasErrors() bool + func (m *Message) Html(html interface{}, related ...Related) *Message + func (m *Message) HtmlTemplate(tpl string, related ...Related) *Message + func (m *Message) Part(ctype string, cte CTE, bytes []byte, related ...Related) *Message + func (m *Message) Prepare() *Message + func (m *Message) PrepareFresh() *Message + func (m *Message) RecipientAddrs() []string + func (m *Message) ReplyTo(addr *Address) *Message + func (m *Message) Sender(s *Sender) *Message + func (m *Message) Subject(subject interface{}) *Message + func (m *Message) SubjectTemplate(tpl string) *Message + func (m *Message) Text(text interface{}) *Message + func (m *Message) TextTemplate(tpl string) *Message + func (m *Message) To(addr ...*Address) *Message + type Related struct + func RelatedFile(id, ctype, file string) Related + func RelatedObject(id, ctype string, data []byte) Related + type Sender struct + func NewSender(host, user, pass string, addr ...string) (*Sender, error) + func (s *Sender) Send(msg *Message, data interface{}) error + func (s *Sender) SetDefault() *Sender