mailer

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailSubjects

type MailSubjects struct {
	OrderConfirmationMail string
}

MailSubjects holds the subject lines for the emails

type Mailer

type Mailer struct {
	Config         *conf.Configuration
	TemplateMailer *mailme.Mailer
}

Mailer will send mail and use templates from the site for easy mail styling

func NewMailer

func NewMailer(conf *conf.Configuration) *Mailer

NewMailer returns a new authlify mailer

func (*Mailer) OrderConfirmationMail

func (m *Mailer) OrderConfirmationMail(transaction *models.Transaction) error

OrderConfirmationMail sends an order confirmation to the user

func (*Mailer) OrderReceivedMail

func (m *Mailer) OrderReceivedMail(transaction *models.Transaction) error

OrderReceivedMail sends a notification to the shop admin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL