sgmail

package
v0.0.0-...-a38e679 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMail

func SetupMail(apikey, fromName, fromAddress string, debug bool)

Types

type SGConfig

type SGConfig struct {
	Client      *sendgrid.Client
	FromName    string
	FromAddress string
	Enabled     bool
	Debug       bool
}

func GetMailer

func GetMailer() *SGConfig

func (*SGConfig) SendMail

func (sg *SGConfig) SendMail(toAddress, subject, message string, logger *logrus.Entry) error

Jump to

Keyboard shortcuts

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