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
Click to show internal directories.
Click to hide internal directories.