mailgun

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func New added in v0.1.1

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

New creates a new mailgunEmailSender

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.

Jump to

Keyboard shortcuts

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