From 8c30749613bcf1ce47fff0a6d1a60c34f91f01c4 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 10 Feb 2015 08:33:42 +0100 Subject: Basic user control. --- app/mailers/mail.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/mailers/mail.go (limited to 'app/mailers/mail.go') diff --git a/app/mailers/mail.go b/app/mailers/mail.go new file mode 100644 index 0000000..1c3a198 --- /dev/null +++ b/app/mailers/mail.go @@ -0,0 +1,15 @@ +package mailers + +import "github.com/tanema/revel_mailer" + +type Mailer struct { + revel_mailer.Mailer +} + +func (u Mailer) SendConfirmationKey(email, key) { + return u.Send(revel_mailer.H{ + "subject": "Confirmation Key", + "to": []string{email}, + "key": key, + }) +} -- cgit v1.2.3