sendgrid

package
v0.0.0-...-1d33cbc Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Endpoint = "/v3/mail/send"

Endpoint is the SendGrid API endpoint this package uses to send emails.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

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

Sender implements the email.Sender interface to send emails using the SendGrid API.

func NewSender

func NewSender(APIKey string) *Sender

NewSender creates a new Sender given an API key.

func (*Sender) AddHeader

func (s *Sender) AddHeader(key, val string)

AddHeader adds a header to use in the emails.

Jump to

Keyboard shortcuts

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