mailer

package
v0.0.0-...-dc37515 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: GPL-3.0 Imports: 1 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 interface {
	From() string
	Send(to []string, msg []byte) error
}

Mailer lets the application send emails.

type SMTP

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

SMTP is the default implementation of Mailer.

func NewSMTP

func NewSMTP(from, addr string, auth smtp.Auth) *SMTP

func (*SMTP) From

func (m *SMTP) From() string

func (*SMTP) Send

func (m *SMTP) Send(to []string, msg []byte) error

Jump to

Keyboard shortcuts

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