Documentation ¶
Overview ¶
Package resend is for sending emails via the resend api
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") // ErrMissingAPIKey is returned when an API key is missing ErrMissingAPIKey = errors.New("missing API key") )
Functions ¶
Types ¶
type Option ¶ added in v0.1.1
type Option func(*resendEmailSender)
Option is a type representing a function that modifies a ResendEmailSender
func WithAPIKey ¶
WithAPIKey is an option that allows to set a custom API key for the Resend client
func WithBaseURL ¶
WithBaseURL is an option that allows to set a custom base URL for the Resend client
func WithClient ¶
func WithClient(client *resend.Client) Option
WithClient is an option that allows to set a custom Resend client
func WithDevMode ¶ added in v0.1.1
func WithFilepath ¶
WithFilePath is an option that allows to set a custom file path for the Resend client
func WithHeaders ¶
WithHeaders is an option that allows to set a custom headers for the Resend client
func WithUserAgent ¶
WithUserAgent is an option that allows to set a custom user agent for the Resend client
Click to show internal directories.
Click to hide internal directories.