mailer

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username string `yaml:"username" description:"SMTP server username"`
	Password string `yaml:"password" description:"SMTP server password"`
	Server   string `yaml:"server" description:"SMTP server host"`
	Port     int    `yaml:"port" description:"SMTP server port" default:"587"`
	From     string `yaml:"from" description:"Sender address for user confirmation"`
}

type Mailer

type Mailer interface {
	SendMailHTML(to, subject, body string) error
}

func NewMailer

func NewMailer(cfg Config) Mailer

Jump to

Keyboard shortcuts

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