mail

package
v0.0.0-...-38fe691 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Content     []byte
	ContentType string
	Charset     string
}

func (*Body) Bytes

func (b *Body) Bytes() ([]byte, error)

type ContentAttach

type ContentAttach struct {
	ContentType string
	FileName    string
	Content     []byte
}

func (*ContentAttach) Bytes

func (a *ContentAttach) Bytes() ([]byte, error)

type FileAttach

type FileAttach string

func (FileAttach) Bytes

func (a FileAttach) Bytes() ([]byte, error)
type Header struct {
	From    mail.Address
	To      []mail.Address
	Cc      []mail.Address
	Bcc     []mail.Address
	Subject Subject
}

func (*Header) Bytes

func (h *Header) Bytes() []byte

func (*Header) ToList

func (h *Header) ToList() []string

type Mail

type Mail struct {
	Header
	// contains filtered or unexported fields
}

func NewMail

func NewMail() (mail *Mail)

func (*Mail) Append

func (m *Mail) Append(p Part)

func (*Mail) Bytes

func (m *Mail) Bytes() ([]byte, error)

type Part

type Part interface {
	Bytes() ([]byte, error)
}

type Subject

type Subject string

func (Subject) String

func (s Subject) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL