sendgrid

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(config *SGConfig)

Types

type Mailer

type Mailer struct {
	*SGConfig
	SGClient *sendgrid.Client
}

func (*Mailer) Config

func (m *Mailer) Config() *mailman.Config

func (*Mailer) Send

func (m *Mailer) Send(to *mailman.Address, content *mailman.Content, vars *mailman.MergeVars) error

type SGConfig

type SGConfig struct {
	*mailman.Config
	ApiKey     string
	TemplateId string
}

func MinConfig

func MinConfig(fromName string, fromEmail string, domain string) *SGConfig

func (*SGConfig) FromEmail

func (c *SGConfig) FromEmail() *mail.Email

Jump to

Keyboard shortcuts

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