Documentation ¶
Overview ¶
Package mailgun is used for sending emails via mailgun
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(*mailgunEmailSender)
Option is a type representing a function that modifies a mailgunEmailSender
func WithEurope ¶
func WithEurope() Option
WithEurope sets the API Mailgun base url to Europe region.
Click to show internal directories.
Click to hide internal directories.