mailer

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: GPL-3.0 Imports: 9 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 {
	// contains filtered or unexported fields
}

Mailer is a mailer that sends emails.

func New added in v1.13.1

func New(cfg *NewMailerArgs) *Mailer

func (*Mailer) Send added in v1.13.1

func (m *Mailer) Send(
	from string,
	to []string,
	subject, body string,
	attachments []string,
) error

SendMail sends an email.

type NewMailerArgs added in v1.13.1

type NewMailerArgs struct {
	Host     string
	Port     string
	Username string
	Password string
}

NewMailerArgs is a config for SMTP mailer.

Jump to

Keyboard shortcuts

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