mail

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api interface {
	Init(user, password, host, port string, inbox <-chan Mail) Api
	Run()
}

Api defines what should the mail expose

type DefaultHandler

type DefaultHandler struct {
	Inbox <-chan Mail
	// contains filtered or unexported fields
}

DefaultHandler holds the default implementation of mail

func (*DefaultHandler) Init

func (mh *DefaultHandler) Init(user, password, host, port string, inbox <-chan Mail) Api

InitFromWebBuilder initializes a default email api instance

func (*DefaultHandler) Run

func (mh *DefaultHandler) Run()

Run start the goroutine that listen for emails to send

type Mail

type Mail struct {
	To      []string
	Content []byte
}

Mail holds the content necessary for a email

func GetChangePasswordMail added in v0.5.4

func GetChangePasswordMail(baseUIPath, secret, publicAddress, username, email, redirectTo string) Mail

GetChangePasswordMail render the mail for changing password

func GetEmailConfirmationMail

func GetEmailConfirmationMail(baseUIPath, secret, publicAddress, username, email, challenge string) Mail

GetEmailConfirmationMail render the mail for email confirmation

Jump to

Keyboard shortcuts

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