mail

package
v0.0.0-...-6653ad0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendgridMailer

type SendgridMailer struct {
	ApiKey       string
	Endpoint     string
	Host         string
	MessageTypes map[papers.MessageType]string
}

func NewSendgridMailer

func NewSendgridMailer(apiKey string) *SendgridMailer

func (SendgridMailer) AddMessageType

func (s SendgridMailer) AddMessageType(msgType papers.MessageType, templateID string)

func (SendgridMailer) SendMessage

func (s SendgridMailer) SendMessage(ctx context.Context, p *papers.Papers, msg papers.Message) error

Send an e-mail

Jump to

Keyboard shortcuts

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