sendgrid

package
v3.10.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sendgrid provides the implementation of an email sender using SendGrid.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, emailConfig email.Config, sgConfig Config) (email.Sender, error)

New creates a SendGrid email provider.

Types

type Config

type Config struct {
	APIKey      string `name:"api-key" description:"The SendGrid API key to use"`
	SandboxMode bool   `name:"sandbox" description:"Use SendGrid sandbox mode for testing"`
}

Config for the SendGrid email provider.

type SendGrid

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

SendGrid is the type that implements SendGrid as email provider.

func (*SendGrid) Send

func (s *SendGrid) Send(message *email.Message) error

Send an email message.

Jump to

Keyboard shortcuts

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