mailer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfirmAccount = iota
	ResetPassword
)

Variables

This section is empty.

Functions

func ParseTemplates

func ParseTemplates(filePath string) (
	map[emailTemplate]*template.Template, error)

ParseTemplates iterate over the list of html templates and parses them.

Types

type SMTPClient

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

func (SMTPClient) Send

func (c SMTPClient) Send(htmlBody, subject, from, to string) error

type SMTPServer

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

func New

func New(host string, port int, username, password string) SMTPServer

New creates a new SMTP client using the default configuration.

func (SMTPServer) Connect

func (s SMTPServer) Connect() (SMTPClient, error)

Jump to

Keyboard shortcuts

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