mailer

package
v1.14.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 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

func New(cfg *NewMailerArgs) *Mailer

func (*Mailer) Send

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

SendMail sends an email.

type NewMailerArgs

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