2019-08-14 09:48:44 +00:00
|
|
|
class ApplicationMailer < ActionMailer::Base
|
2019-12-03 17:24:08 +00:00
|
|
|
default from: ENV.fetch('MAILER_SENDER_EMAIL', 'accounts@chatwoot.com')
|
2019-08-14 09:48:44 +00:00
|
|
|
layout 'mailer'
|
2020-03-01 13:36:13 +00:00
|
|
|
append_view_path Rails.root.join('app/views/mailers')
|
2019-08-25 14:29:28 +00:00
|
|
|
|
|
|
|
# helpers
|
|
|
|
helper :frontend_urls
|
2020-01-23 17:29:07 +00:00
|
|
|
|
|
|
|
def smtp_config_set_or_development?
|
|
|
|
ENV.fetch('SMTP_ADDRESS', nil).present? || Rails.env.development?
|
|
|
|
end
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|