Documentation
¶
Overview ¶
Package mailgun implements mailer.Sender on the Mailgun HTTP API (v3) with no dependency beyond the standard library.
Index ¶
Constants ¶
View Source
const ( // DefaultBaseURL serves US-region domains. EU-region domains must use // WithBaseURL(EUBaseURL). DefaultBaseURL = "https://api.mailgun.net" EUBaseURL = "https://api.eu.mailgun.net" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client sends messages through a single Mailgun domain. It is safe for concurrent use.
type Option ¶
type Option func(*Client)
Option configures a Client.
func WithBaseURL ¶
WithBaseURL overrides the API base URL (EU region, tests, proxy).
func WithHTTPClient ¶
WithHTTPClient injects a custom *http.Client.
func WithTimeout ¶
WithTimeout sets the HTTP client timeout.
Click to show internal directories.
Click to hide internal directories.