message

package
v0.0.0-...-116aade Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressList

type AddressList []*mail.Address

AddressList is a slice of Addresses.

func (AddressList) Slice

func (list AddressList) Slice() []string

Slice returns slice of email strings.

func (AddressList) String

func (list AddressList) String() string

String returns list as comma-separated values.

type Message

type Message struct {
	Subject string
	Text    string
	HTML    string
	From    *mail.Address
	To      AddressList
	CC      AddressList
	BCC     AddressList
}

Message defines email message.

func NewMessage

func NewMessage() *Message

NewMessage returns new empty Message instance.

func (*Message) AddBCC

func (msg *Message) AddBCC(addr *mail.Address)

AddBCC adds new recipient to slice of recipients.

func (*Message) AddCC

func (msg *Message) AddCC(addr *mail.Address)

AddCC adds new recipient to slice of recipients.

func (*Message) AddTo

func (msg *Message) AddTo(addr *mail.Address)

AddTo adds new recipient to slice of recipients.

Jump to

Keyboard shortcuts

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