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

@ -31,6 +31,14 @@ module Emailer
UserMailer.password_reset(@user, reset_link, logo_image, user_color).deliver_now
end
def send_user_promoted_email(user)
UserMailer.user_promoted(user, root_url, logo_image, user_color).deliver_now
end
def send_user_demoted_email(user)
UserMailer.user_demoted(user, root_url, logo_image, user_color).deliver_now
end
# Sends inivitation to join
def send_invitation_email(name, email, token)
@token = token