mailer

package
v0.0.0-...-f990510 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Dialer          *mail.Dialer
	Sender          string
	MailerErrorChan chan error
	MailerDataChan  chan *models.EmailData
	MailerDoneChan  chan bool
}

func New

func New(host string, port int, username, password, sender string) Mailer

New returns a new mailer with all necessary config passed into it

func (*Mailer) ListenForMail

func (m *Mailer) ListenForMail(wg *sync.WaitGroup)

func (Mailer) Send

func (m Mailer) Send(recipient, templateFile string, data any)

Jump to

Keyboard shortcuts

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