mail

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEmailTemplatePath string = "./email_templates"
)

Variables

This section is empty.

Functions

func NewService

func NewService(ess model.EmailServiceSettings, fs fs.FS, updIntrv time.Duration, templatesPath string) (model.EmailService, error)

Types

type EmailService

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

func (*EmailService) SendHTML

func (es *EmailService) SendHTML(subject, html, recipient string) error

func (*EmailService) SendMessage

func (es *EmailService) SendMessage(subject, body, recipient string) error

proxy to underlying service

func (*EmailService) SendTemplateEmail

func (es *EmailService) SendTemplateEmail(emailType model.EmailTemplateType, subfolder, subject string, recipient string, data model.EmailData) error

func (*EmailService) Start added in v2.3.0

func (es *EmailService) Start()

func (*EmailService) Stop added in v2.3.0

func (es *EmailService) Stop()

func (*EmailService) Transport added in v2.3.0

func (es *EmailService) Transport() model.EmailTransport

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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