mailer

package
v0.0.0-...-2c6e621 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 1 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     int
	From     string
	User     string
	Password string
}

Config for mailer

type Mailer

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

Mailer send email

func NewMailer

func NewMailer(c *Config) *Mailer

NewMailer return a mailer

func (*Mailer) DialAndSend

func (m *Mailer) DialAndSend(to, subj, body string) error

DialAndSend dial and send email

Jump to

Keyboard shortcuts

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