mailer

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 5 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 {
	From     string
	Host     string
	FullHost string
	Auth     smtp.Auth
	Logger   log.LoggerInterface
}

func NewInternalMailer

func NewInternalMailer() *Mailer

func (*Mailer) Connect

func (m *Mailer) Connect(d MailerDependency)

func (*Mailer) SendMail

func (m *Mailer) SendMail(address string, subject string, body string) error

type MailerDependency

type MailerDependency struct {
	From     string
	SmtpUser string
	Password string
	Host     string
	Port     string
	Logger   log.LoggerInterface
}

Jump to

Keyboard shortcuts

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