2015-10-08 19:16:33 -05:00
|
|
|
class AccountMailer < ApplicationMailer
|
2015-10-08 21:10:33 -05:00
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
|
|
# with the following lookup:
|
|
|
|
#
|
|
|
|
# en.account_mailer.activation_needed_email.subject
|
|
|
|
#
|
|
|
|
def activation_needed_email(user)
|
|
|
|
@greeting = "Hi"
|
|
|
|
@user = user
|
|
|
|
mail to: Person.admins.map(&:email).join(', ')
|
|
|
|
end
|
|
|
|
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
|
|
# with the following lookup:
|
|
|
|
#
|
|
|
|
# en.account_mailer.activation_success_email.subject
|
|
|
|
#
|
|
|
|
def activation_success_email(user)
|
|
|
|
@greeting = "Hi"
|
|
|
|
@user = user
|
|
|
|
mail to: user.email
|
2015-10-08 19:16:33 -05:00
|
|
|
end
|
|
|
|
end
|