mailer

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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 Config

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

Config is a config for SMTP mailer.

type Mailer

type Mailer struct {
	*Config
}

Mailer is a mailer that sends emails.

func (*Mailer) SendMail

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

SendMail sends an email.

Jump to

Keyboard shortcuts

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