Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchedProvider ¶
type BatchedProvider interface { // SendBatch dispatches an email message to the provider for sending to many recipients SendBatch(ctx context.Context, l *zap.Logger, to []string, from string, subject string, body string, htmlBody, replyTo *string) error }
BatchedProvider is an extension to the Provider stating that the provider natively supports batching
type MailGun ¶
type MailGun struct {
// contains filtered or unexported fields
}
type Provider ¶
type Provider interface { // Send dispatches an email message to the provider for sending to one recipient Send(ctx context.Context, l *zap.Logger, to string, from string, subject string, body string, htmlBody, replyTo *string) error // Name retrieves the name of the provider Name() string }
Provider is an interface to an email provider
func NewMailgun ¶
NewMailgun creates a new MailGun email provider
Click to show internal directories.
Click to hide internal directories.