mailer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: MIT Imports: 4 Imported by: 2

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 {
	SiteURL        string
	TemplateFolder string
	Host           string
	Port           int
	User           string
	Pass           string
	AdminEmail     string
	MailSubjects   MailSubjects
}

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