Documentation
¶
Index ¶
Constants ¶
View Source
const ( MailProviderDev = "dev" MailProviderSES = "ses" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mailer ¶ added in v1.4.1
type Mailer interface {
// Send sends the email
Send(SendMailData) error
}
Mailer is used to have different implementation for sending email
type SendMailData ¶ added in v1.4.1
type SendMailData struct {
From string `json:"from"`
FromName string `json:"fromName"`
To string `json:"to"`
ToName string `json:"toName"`
Subject string `json:"subject"`
HTMLBody string `json:"htmlBody"`
TextBody string `json:"textBody"`
ReplyTo string `json:"replyTo"`
Body string `json:"body"`
}
SendMailData contains necessary fields to send an email
Click to show internal directories.
Click to hide internal directories.