2017-03-07 09:37:28 +00:00
|
|
|
class ResetCPanelPasswordMailer < ActionMailer::Base
|
|
|
|
default from: "noreply@rulingcom.com"
|
|
|
|
|
|
|
|
def reset_user_password(user)
|
|
|
|
email = user.email
|
|
|
|
@reset_token = user.reset_token
|
|
|
|
@user_id = user.id
|
2017-03-07 10:38:12 +00:00
|
|
|
@url = "http://storedemo.pending.rulingcom.com/cpanel/reset_password?id=#{@user_id}&token=#{@reset_token}"
|
2017-03-07 09:37:28 +00:00
|
|
|
mail(:to => email, :subject => "Reset Password Instructions")
|
|
|
|
end
|
|
|
|
|
|
|
|
def send_user_confirmation(user)
|
|
|
|
@confirmation_token = user.confirmation_token
|
|
|
|
@user_id = user.id
|
2017-03-07 10:38:12 +00:00
|
|
|
@url = "http://storedemo.pending.rulingcom.com/cpanel/confirm_email?id=#{@user_id}&token=#{@confirmation_token}"
|
2017-03-07 09:37:28 +00:00
|
|
|
mail(:to => user.email, :subject => "Orbit - Confirm Email")
|
|
|
|
end
|
|
|
|
end
|