Versions in this module Expand all Collapse all v0 v0.2.0 Feb 25, 2018 v0.1.0 Feb 11, 2018 Changes in this version + const ErrorCharsetConversion + const ErrorContentEncoding + const ErrorMalformedBase64 + const ErrorMalformedHeader + const ErrorMissingBoundary + const ErrorMissingContentType + const ErrorPlainTextFromHTML + var AddressHeaders = map[string]bool + type Envelope struct + Attachments []*Part + Errors []*Error + HTML string + Inlines []*Part + OtherParts []*Part + Root *Part + Text string + func EnvelopeFromPart(root *Part) (*Envelope, error) + func ReadEnvelope(r io.Reader) (*Envelope, error) + func (e *Envelope) AddressList(key string) ([]*mail.Address, error) + func (e *Envelope) GetHeader(name string) string + type Error struct + Detail string + Name string + Severe bool + func (e *Error) String() string + type MailBuilder struct + func Builder() *MailBuilder + func (p *MailBuilder) AddAttachment(b []byte, contentType string, fileName string) *MailBuilder + func (p *MailBuilder) AddFileAttachment(path string) *MailBuilder + func (p *MailBuilder) AddFileInline(path string) *MailBuilder + func (p *MailBuilder) AddInline(b []byte, contentType string, fileName string, contentID string) *MailBuilder + func (p *MailBuilder) BCC(name, addr string) *MailBuilder + func (p *MailBuilder) BCCAddrs(bcc []mail.Address) *MailBuilder + func (p *MailBuilder) Build() (*Part, error) + func (p *MailBuilder) CC(name, addr string) *MailBuilder + func (p *MailBuilder) CCAddrs(cc []mail.Address) *MailBuilder + func (p *MailBuilder) Date(date time.Time) *MailBuilder + func (p *MailBuilder) Equals(o *MailBuilder) bool + func (p *MailBuilder) Error() error + func (p *MailBuilder) From(name, addr string) *MailBuilder + func (p *MailBuilder) HTML(body []byte) *MailBuilder + func (p *MailBuilder) Header(name, value string) *MailBuilder + func (p *MailBuilder) ReplyTo(name, addr string) *MailBuilder + func (p *MailBuilder) Send(addr string, a smtp.Auth) error + func (p *MailBuilder) Subject(subject string) *MailBuilder + func (p *MailBuilder) Text(body []byte) *MailBuilder + func (p *MailBuilder) To(name, addr string) *MailBuilder + func (p *MailBuilder) ToAddrs(to []mail.Address) *MailBuilder + type Part struct + Boundary string + Charset string + Content []byte + ContentID string + ContentType string + Disposition string + Epilogue []byte + Errors []Error + FileName string + FirstChild *Part + Header textproto.MIMEHeader + NextSibling *Part + Parent *Part + PartID string + Utf8Reader io.Reader + func NewPart(parent *Part, contentType string) *Part + func ReadParts(r io.Reader) (*Part, error) + func (p *Part) AddChild(child *Part) + func (p *Part) BreadthMatchAll(matcher PartMatcher) []*Part + func (p *Part) BreadthMatchFirst(matcher PartMatcher) *Part + func (p *Part) DepthMatchAll(matcher PartMatcher) []*Part + func (p *Part) DepthMatchFirst(matcher PartMatcher) *Part + func (p *Part) Encode(writer io.Writer) error + func (p *Part) Read(b []byte) (n int, err error) + func (p *Part) TextContent() bool + type PartMatcher func(part *Part) bool