email

package
v0.0.0-...-5c0bb04 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SMTP = "smtp"
	POP3 = "pop3"
	IMAP = "imap"
)

mailer type

Variables

This section is empty.

Functions

func Init

func Init()

Init for Mailer

func Send

func Send(to []string, msg string) error

Send mail

func SetTestMailer

func SetTestMailer(mailer Mailer)

SetTestMailer set instance for testing

Types

type Mailer

type Mailer interface {
	Send(to []string, msg string) error
}

Mailer mail interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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