diff options
| author | Horus_Arch | 2015-02-10 10:10:22 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-10 10:10:22 +0100 |
| commit | c7869f2326d4e8282697c6961f39f1b19b4c8c94 (patch) | |
| tree | c4ac577605c894ac6e0baa8660f740823f609790 /app/mailers/mail.go | |
| parent | 8c30749613bcf1ce47fff0a6d1a60c34f91f01c4 (diff) | |
| download | webmon-c7869f2326d4e8282697c6961f39f1b19b4c8c94.tar.gz | |
Mailer views.
Diffstat (limited to 'app/mailers/mail.go')
| -rw-r--r-- | app/mailers/mail.go | 9 |
1 files changed, 9 insertions, 0 deletions
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, + }) +} |
