email

package
v0.0.0-...-f1b58f7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email interface {
	SendMessage(msg Message) error
}

func NewMail

func NewMail(address, user, pass, name string) (Email, error)

type Message

type Message interface {
	To(to ...string) *message
	Cc(cc ...string) *message
	Bcc(bcc ...string) *message
	ReplyTo(msg string) *message
	ToList() []string
	Bytes(from mail.Address) []byte
	AttachBuffer(filename string, buf []byte, inline bool) error
	Attach(file string) error
	Inline(file string) error
}

func NewHTMLMessage

func NewHTMLMessage(subject string, body string) Message

func NewMessage

func NewMessage(subject string, body string) Message

Jump to

Keyboard shortcuts

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