Documentation
¶
Overview ¶
Package email provides an interface for sending emails, with implementations for Mailgun, Mailjet, Postmark, Resend, and SendGrid.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailBranding ¶
EmailBranding holds app-specific branding used when building Hermes email templates.
type Emailer ¶
type Emailer interface {
SendEmail(ctx context.Context, details *OutboundEmailMessage) error
}
Emailer represents a service that can send emails.
type OutboundEmailMessage ¶
type OutboundEmailMessage struct {
UserID string
ToAddress string
ToName string
FromAddress string
FromName string
Subject string
HTMLContent string
TestID string `json:"testID,omitempty"`
}
OutboundEmailMessage is a collection of fields that are useful for sending emails.
Click to show internal directories.
Click to hide internal directories.