2014-10-12 18:36:31 +00:00
|
|
|
class Notifications < ActionMailer::Base
|
2017-04-18 14:33:07 +00:00
|
|
|
default from: CFG.smtp_from_address
|
2014-10-12 18:36:31 +00:00
|
|
|
|
|
|
|
def self.delay_login_request(user_id, token)
|
|
|
|
delay.login_request(user_id, token)
|
|
|
|
end
|
|
|
|
|
|
|
|
def login_request(user_id, token)
|
|
|
|
user = User.find(user_id)
|
|
|
|
@login_url = login_token_url(token)
|
|
|
|
|
|
|
|
mail to: user.email
|
|
|
|
end
|
|
|
|
end
|