mail

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailManager

type MailManager interface {
	SendMail(mm MailMessage) error
	RenderTemplate(templateFile string, data any) (string, error)
	RenderTemplateWithFuncs(templateFile string, data any) (string, error)
}

type MailMessage

type MailMessage struct {
	Subject string
	Message string
	To      []string
}

type Manager

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

func NewManager

func NewManager(smtpServer string, smtpPort string, smtpSender string, templatePath string) (*Manager, error)

func (*Manager) RenderTemplate

func (m *Manager) RenderTemplate(templateFile string, data any) (string, error)

func (*Manager) RenderTemplateWithFuncs

func (m *Manager) RenderTemplateWithFuncs(templateFile string, data any) (string, error)

func (*Manager) SendMail

func (m *Manager) SendMail(mm MailMessage) error

Jump to

Keyboard shortcuts

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