mail

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailConf

type MailConf interface {
	NewMailServ(l log.Logger) MailServ
}

type MailServ

type MailServ interface {
	Subject(s string) MailServ
	PlaintText(p string) MailServ
	Html(h string) MailServ
	SendSingle(name, mail string) error
}

type SendGridConf

type SendGridConf struct {
	From *sgMail.Email      `yaml:"from"`
	Bcc  *sgMail.BccSetting `yaml:"bcc"`
}

func (*SendGridConf) NewMailServ

func (conf *SendGridConf) NewMailServ(l log.Logger) MailServ

Jump to

Keyboard shortcuts

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