email

package
v0.0.0-...-db93d88 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoAddr = Addr{}
View Source
var Sender = Addr{"vmail", "vmail@localhost"}

Functions

This section is empty.

Types

type Addr

type Addr mail.Address

func ParseAddr

func ParseAddr(addr string) (Addr, error)

func ParseDest

func ParseDest(addr string) (Addr, error)

func (Addr) Domain

func (a Addr) Domain() string

func (Addr) HasDelimiter

func (a Addr) HasDelimiter(d rune) bool

func (Addr) String

func (a Addr) String() string

func (Addr) User

func (a Addr) User() string

type Msg

type Msg struct {
	Header textproto.MIMEHeader
	Parts  []Part
}

func NewMsg

func NewMsg(from Addr, subject string, to ...Addr) *Msg

func (*Msg) AddHtml

func (m *Msg) AddHtml(r io.Reader) error

func (*Msg) AddPlain

func (m *Msg) AddPlain(r io.Reader) error

func (*Msg) AddQuotedPrintable

func (m *Msg) AddQuotedPrintable(typ string, r io.Reader) error

func (*Msg) WriteTo

func (m *Msg) WriteTo(w io.Writer) error

type Part

type Part struct {
	Header  textproto.MIMEHeader
	Content io.Reader
}

func NewPart

func NewPart(typ, enc string, r io.Reader) *Part

Jump to

Keyboard shortcuts

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