2018-11-20 11:57:51 +01:00
|
|
|
# Preview all emails at http://localhost:3000/rails/mailers/devise_user_mailer
|
2018-05-14 14:21:03 +02:00
|
|
|
class DeviseUserMailer < Devise::Mailer
|
|
|
|
helper :application # gives access to all helpers defined within `application_helper`.
|
2021-04-22 12:34:41 +02:00
|
|
|
helper MailerHelper
|
2018-05-14 14:21:03 +02:00
|
|
|
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url`
|
2023-01-16 11:34:36 +01:00
|
|
|
include MailerDolistConcern
|
2023-01-10 15:36:58 +01:00
|
|
|
include MailerMonitoringConcern
|
2023-01-23 14:56:05 +01:00
|
|
|
include BalancedDeliveryConcern
|
2023-10-18 07:10:26 +02:00
|
|
|
include PriorityDeliveryConcern
|
|
|
|
|
2018-05-14 14:21:03 +02:00
|
|
|
layout 'mailers/layout'
|
2018-06-08 19:41:34 +02:00
|
|
|
|
|
|
|
def template_paths
|
|
|
|
['devise_mailer']
|
|
|
|
end
|
2019-09-10 13:29:06 +02:00
|
|
|
|
|
|
|
def confirmation_instructions(record, token, opts = {})
|
|
|
|
opts[:from] = NO_REPLY_EMAIL
|
2020-02-25 15:12:09 +01:00
|
|
|
@procedure = opts[:procedure_after_confirmation] || nil
|
2023-01-03 14:46:10 +01:00
|
|
|
@prefill_token = opts[:prefill_token]
|
2019-09-10 13:29:06 +02:00
|
|
|
super
|
|
|
|
end
|
2023-01-11 09:44:39 +01:00
|
|
|
|
2023-10-18 07:10:26 +02:00
|
|
|
def self.critical_email?(action_name)
|
2023-01-23 14:56:05 +01:00
|
|
|
true
|
2023-01-11 09:44:39 +01:00
|
|
|
end
|
2018-05-14 14:21:03 +02:00
|
|
|
end
|