goliame

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg struct {
	From   string
	To     []string
	Passwd string
	Host   string
	Port   string
	Body   []byte
}

Msg is a struct to hold email information

func New added in v0.1.3

func New(from, passwd, host, port string, to []string) *Msg

New builds a new msg instance

func (*Msg) LoadFile added in v0.1.3

func (m *Msg) LoadFile(fpath string) error

LoadFile fetch file content in order to build email body

func (*Msg) Send

func (m *Msg) Send() (bool, error)

Send message, passing email parameters

Jump to

Keyboard shortcuts

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