Documentation ¶
Overview ¶
Package mailer acts a central mail server for the application.
It implements various types of communication with actual mail servers (sendmail, smtp, sendgrid API) and a simple queue mechanism to avoid spamming these servers.
Index ¶
Constants ¶
View Source
const (
MaxSendRetries = 5
)
Variables ¶
This section is empty.
Functions ¶
func NewGomailMessage ¶
Types ¶
type BoltQueue ¶
type Queue ¶
type SendGrid ¶
type SendGrid struct {
ApiKey string
}
SendGrid is a passerelle to Sendgrid API. It holds the application API Key.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package grpc provides the actual logic for posting emails to queue or to mail servers
|
Package grpc provides the actual logic for posting emails to queue or to mail servers |
Package lang provides i18n strings for mailer-related data.
|
Package lang provides i18n strings for mailer-related data. |
Package rest exposes a simple API for posting emails
|
Package rest exposes a simple API for posting emails |
Package templates defines ready-to-use templates to send email in a nice formatting.
|
Package templates defines ready-to-use templates to send email in a nice formatting. |
Click to show internal directories.
Click to hide internal directories.