mailgun

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MailerName         = "mailgun"
	EnvironmentKey     = "MG_API_KEY"
	EnvironmentDomain  = "MG_DOMAIN"
	EnvironmentEmailTo = "MG_EMAIL_TO"
)

Variables

View Source
var (
	ErrMissingAPIKey = errors.New("Mailgun requires an API key")
	ErrMissingDomain = errors.New("Mailgun requires API domain")
)

Functions

func New

func New(config Configuration) (mdsend.Mailer, error)

New creates a Mailgun sending agent.

Types

type Configuration

type Configuration struct {
	Queue    queue.Queue
	APIKey   string
	Domain   string
	TestMode bool
}

Jump to

Keyboard shortcuts

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