sendgrid

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sendgrid is used for sending emails via sendgrid

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFailedToSendEmail is returned when an email fails to send
	ErrFailedToSendEmail = errors.New("failed to send email")
	// ErrVerifyFailed is returned when SendGrid rejects the configured API key
	ErrVerifyFailed = errors.New("failed to verify sendgrid credentials")
)

Functions

func New added in v0.1.1

func New(apiKey string, opts ...Option) (newman.EmailSender, error)

New creates a new instance of sendGridEmailSender

Types

type Option added in v0.4.0

type Option func(*sendGridEmailSender)

Option configures a sendGridEmailSender

func WithHTMLScrubber added in v0.4.0

func WithHTMLScrubber(s scrubber.Scrubber) Option

WithHTMLScrubber sets a scrubber applied to HTML content before sending. When set, every outbound message has its HTML sanitized by this scrubber

Jump to

Keyboard shortcuts

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