summaryrefslogtreecommitdiff
path: root/app/controllers/mail.go
diff options
context:
space:
mode:
authorHorus_Arch2015-03-02 15:31:39 +0100
committerHorus_Arch2015-03-02 15:31:39 +0100
commite31b06b7b56aaf1cf5510d4bb0261f73bc0e8893 (patch)
tree0651cdd688659b845f3605e09384161b3c0334db /app/controllers/mail.go
parentcf66deeeba38263feef0ca4123a983cb78ce5cac (diff)
downloadwebmon-e31b06b7b56aaf1cf5510d4bb0261f73bc0e8893.tar.gz
Migrating from revel.HEADmaster
Diffstat (limited to 'app/controllers/mail.go')
-rw-r--r--app/controllers/mail.go45
1 files changed, 0 insertions, 45 deletions
diff --git a/app/controllers/mail.go b/app/controllers/mail.go
deleted file mode 100644
index 3fd2e94..0000000
--- a/app/controllers/mail.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package controllers
-
-import (
- "github.com/tanema/revel_mailer"
-)
-
-type Mailer struct {
- revel_mailer.Mailer
-}
-
-type JobConfirmationKey struct {
- Email string
- Key string
-}
-
-func (j JobConfirmationKey) Run() {
- _ = Mailer{}.SendConfirmationKey(j.Email, j.Key)
-}
-
-func (u Mailer) SendConfirmationKey(email, key string) error {
- return u.Send(revel_mailer.H{
- "subject": "Confirmation Key",
- "to": []string{email},
- "key": key,
- })
-}
-
-type JobRegistration struct {
- User string
- Email string
- Key string
-}
-
-func (j JobRegistration) Run() {
- _ = Mailer{}.ConfirmRegistration(j.User, j.Email, j.Key)
-}
-
-func (u Mailer) ConfirmRegistration(user, email, key string) error {
- return u.Send(revel_mailer.H{
- "name": user,
- "subject": "Confirm registration",
- "to": []string{email},
- "key": key,
- })
-}