diff options
| author | Horus3 | 2015-02-10 08:33:42 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-10 08:33:42 +0100 |
| commit | 8c30749613bcf1ce47fff0a6d1a60c34f91f01c4 (patch) | |
| tree | 98354473d929cbc9749f08ea0afdf90993a01480 /app/mailers/mail.go | |
| parent | af1f4677c685e8a2c4967ffa0350d314a6543db7 (diff) | |
| download | webmon-8c30749613bcf1ce47fff0a6d1a60c34f91f01c4.tar.gz | |
Basic user control.
Diffstat (limited to 'app/mailers/mail.go')
| -rw-r--r-- | app/mailers/mail.go | 15 |
1 files changed, 15 insertions, 0 deletions
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, + }) +} |
