email

package
v0.0.0-...-0a4da6c Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttachmentList

func NewAttachmentList() map[string]*Attachment

Types

type Attachment

type Attachment struct {
	Filename string
	Data     []byte
	Inline   bool
}

func NewAttachment

func NewAttachment(filename string, fileContent []byte, inline bool) *Attachment

type Message

type Message struct {
	From            mail.Address
	To              []string
	Cc              []string
	Subject         string
	Body            string
	BodyContentType string
	Attachments     map[string]*Attachment

	Bcc     []string
	ReplyTo string
}

func New

func New() *Message

func (*Message) GetMsg

func (this *Message) GetMsg() []byte

func (*Message) GetToList

func (this *Message) GetToList() []string

func (*Message) Send

func (this *Message) Send() error

Jump to

Keyboard shortcuts

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