Documentation
¶
Overview ¶
Package mail contains a simple mailer that connects to your mail service and sends emails through the jobs channel or direct methods calls. At the moment only supports SMTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer struct {
// Service is the type of mail service to use i.e. SMTP, API
Service string
// Templates is the full path to the email templates
Templates string
// Jobs is the jobs channel
Jobs chan Message
// Results is the results channel for the jobs channel
Results chan Result
// contains filtered or unexported fields
}
func NewMailer ¶
func NewMailer(settings MailerSettings, service string, path string) (*Mailer, error)
func (*Mailer) ListenForMail ¶
func (m *Mailer) ListenForMail()
func (*Mailer) SendSMTPMessage ¶
type MailerSettings ¶
Click to show internal directories.
Click to hide internal directories.