From c7869f2326d4e8282697c6961f39f1b19b4c8c94 Mon Sep 17 00:00:00 2001 From: Horus_Arch Date: Tue, 10 Feb 2015 10:10:22 +0100 Subject: Mailer views. --- app/mailers/mail.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/mailers') diff --git a/app/mailers/mail.go b/app/mailers/mail.go index 1c3a198..6593f95 100644 --- a/app/mailers/mail.go +++ b/app/mailers/mail.go @@ -13,3 +13,12 @@ func (u Mailer) SendConfirmationKey(email, key) { "key": key, }) } + +func (u Mailer) ConfirmRegistraion(user, email, key) { + return u.Send(revel_mailer.H{ + "name": user, + "subject": "Confirm registration", + "to": []string{email}, + "key": key, + }) +} -- cgit v1.2.3