mail

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	Sender         string
	Authentication smtp.Auth
}

func NewNotification

func NewNotification() (*Mail, error)

func (*Mail) Send

func (m *Mail) Send(recipient, subject, message string) error

func (*Mail) SendTemplate added in v1.2.2

func (m *Mail) SendTemplate(recipient, subject, templateFilename string, variables map[string]string) error

type Template added in v1.2.2

type Template struct {
	Map map[string]string
}

func NewTemplate added in v1.2.2

func NewTemplate(placeholders map[string]string) *Template

func (*Template) ReplaceContent added in v1.2.2

func (t *Template) ReplaceContent(filename string) (string, error)

Jump to

Keyboard shortcuts

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