sendgrid

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendgridClient

type SendgridClient interface {
	Send(email *mail.SGMailV3) (*rest.Response, error)
}

type SendgridProvider

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

func NewSendgridProvider

func NewSendgridProvider(settings Settings) *SendgridProvider

func (*SendgridProvider) Init

func (sg *SendgridProvider) Init(opts *mailer.InitOptions)

func (*SendgridProvider) SendFromHTML

func (sg *SendgridProvider) SendFromHTML(html string, opts *mailer.SendOptions) error

func (*SendgridProvider) SendFromTemplate

func (sg *SendgridProvider) SendFromTemplate(template string, opts *mailer.SendOptions) error

type Settings

type Settings struct {
	ApiKey      string
	DefaultFrom *mailer.Email
}

Jump to

Keyboard shortcuts

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