sendgrid

package
v1.85.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sendgrid implements emailprovider.Sender with SendGrid's v3 Mail Send API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(creds Credentials, config Config) (emailprovider.Sender, error)

New validates credentials and configuration and returns a SendGrid sender.

Types

type Config

type Config struct {
	Sender             emailprovider.Address
	ReplyTo            *emailprovider.Address
	UnsubscribeGroupID int
	Endpoint           string
	Client             *http.Client
}

Config contains message-level and transport settings for a Sender.

type Credentials

type Credentials struct {
	APIKey string
}

Credentials contains the secret used to authenticate SendGrid requests.

Jump to

Keyboard shortcuts

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