mailer

package
v0.0.0-...-fbf9a92 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Message

func Message(ctx context.Context, m *Mailer, To, subject, body string) error

func MessageSimple

func MessageSimple(ctx context.Context, m *Mailer, To, subject, body string) error

func SendInvite

func SendInvite(ctx context.Context, m *Mailer, To, First, Last, email string) error

func SendNewPass

func SendNewPass(ctx context.Context, m *Mailer, To, First, pass string) error

func SendPin

func SendPin(ctx context.Context, m *Mailer, To, First, pin, id string) error

func SendReset

func SendReset(ctx context.Context, m *Mailer, To, First, pin, id string) error

Types

type Mailer

type Mailer struct {
	Dialer   *gomail.Dialer
	From     string // no-reply@mediawatch.io
	FromName string // MediaWatch
	ReplyTo  string // press@mediawatch.io
}

func New

func New(smtp string, port int, username, password string, From, FromName, ReplyTo string) *Mailer

Jump to

Keyboard shortcuts

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