emailer

package
v0.0.0-...-c683906 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username string
	Password string
	Server   string
	Port     int
}

type Emailer

type Emailer struct {
	// contains filtered or unexported fields
}

func New

func New(eType string, creds Credentials) (*Emailer, error)

func (*Emailer) SendCustom

func (e *Emailer) SendCustom(to string, msg []byte) error

SendCustom function will not fill out the to/subject email headers for you and allow you to send a completely custom message in the form of bytes.

func (*Emailer) SendSimple

func (e *Emailer) SendSimple(to string, subject string, body string) error

SendSimple function will fill out the to/subject email headers for you and allow you to just input a string as the email body.

func (*Emailer) Test

func (e *Emailer) Test()

Jump to

Keyboard shortcuts

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