Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MSOButtonStop is the HTML to stop MSO button spacing. MSOButtonStop = `<!--[if mso]> <i style="letter-spacing: 24px"> </i> <![endif]-->` // MSOButtonStart is the HTML to start MSO button spacing. MSOButtonStart = `` /* 138-byte string literal not displayed */ // MSOHead is the HTML to start MSO head. MSOHead = `` /* 366-byte string literal not displayed */ )
Variables ¶
View Source
var ErrProvider = errors.New("error with email provider")
ErrProvider is returned when there is an error with the email provider.
View Source
var HTMLTemplate string
HTMLTemplate is the HTML template for the email.
View Source
var TextTemplate string
TextTemplate is the text template for the email.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct { Subject string TemplateData TemplateData To *mail.Address }
Email is the model for an email.
type MultiProviderOptions ¶
MultiProviderOptions are the options for the multi-provider.
type Provider ¶
Provider is the interface for an email provider.
func NewMultiProvider ¶
func NewMultiProvider(providers []Provider, options MultiProviderOptions) (Provider, error)
NewMultiProvider creates a new multiple email provider.
Click to show internal directories.
Click to hide internal directories.