Versions in this module Expand all Collapse all v0 v0.1.1 Nov 18, 2026 v0.1.0 Nov 18, 2026 Changes in this version + const DefaultBaseURL + type Address struct + Email string + Name string + type Attachment struct + Content string + Name string + type Client struct + BaseURL string + HTTPClient *http.Client + Key string + func New(key string) *Client + func (c *Client) SendEmail(ctx context.Context, email Email) (*Sent, error) + type Email struct + Attachment []Attachment + BatchID string + Bcc []Address + Cc []Address + HTMLContent string + Headers map[string]string + Params map[string]any + Payment *Payment + ReplyTo *Address + ScheduledAt *time.Time + Sender Address + Subject string + TemplateID int64 + TextContent string + To []Address + Unsubscribe bool + type Error struct + Code string + Message string + Status int + func (e *Error) Error() string + func (e *Error) Retryable() bool + type Event struct + CreatedAt time.Time + Data struct{ ... } + ID string + Type string + func VerifyWebhook(secret string, headers http.Header, body []byte) (*Event, error) + type Payment struct + AmountXOF int64 + Description string + ExpiresIn int + Methods []string + Reference string + type Sent struct + BatchID string + MessageID string + MessageIDs []string