mail

package
v0.0.0-...-a66c39b Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 4 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
}

func New

func New(l *logrus.Logger, o string, host string, port int, user string, pass string) (*Mailer, error)

func (*Mailer) Send

func (m *Mailer) Send(to, url string) error

Send - check package configuration and send an email or log it

func (*Mailer) Validate

func (m *Mailer) Validate() (string, bool)

Jump to

Keyboard shortcuts

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