GRN2-140: Added Email to inform user they've been promoted (#534)

* Added Email to inform user they've been promoted

* Update user_mailer.rb

* Send email when a user is demoted

* Change more-info string
This commit is contained in:
shawn-higgins1
2019-05-22 13:36:33 -04:00
committed by Jesus Federico
parent 9638ebcbc5
commit 83a9edf81d
10 changed files with 208 additions and 0 deletions

View File

@ -35,6 +35,22 @@ class UserMailer < ApplicationMailer
mail to: user.email, subject: t('reset_password.subtitle')
end
def user_promoted(user, url, image, color)
@url = url
@admin_url = url + "admins"
@image = image
@color = color
mail to: user.email, subject: t('mailer.user.promoted.subtitle')
end
def user_demoted(user, url, image, color)
@url = url
@root_url = url
@image = image
@color = color
mail to: user.email, subject: t('mailer.user.demoted.subtitle')
end
def invite_email(name, email, url, image, color)
@name = name
@email = email