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 ¶
Types ¶
type Option ¶ added in v0.4.0
type Option func(*sendGridEmailSender)
Option configures a sendGridEmailSender
func WithHTMLScrubber ¶ added in v0.4.0
WithHTMLScrubber sets a scrubber applied to HTML content before sending. When set, every outbound message has its HTML sanitized by this scrubber
Click to show internal directories.
Click to hide internal directories.