Compare commits

..

No commits in common. "main" and "status-change-email" have entirely different histories.

2 changed files with 2 additions and 13 deletions

View File

@ -3,16 +3,6 @@
# frozen_string_literal: true
class ApplicationMailer < ActionMailer::Base
class << self
private
def default_from
File.read('/run/secrets/smtp_user_name').strip
rescue Errno::ENOENT
'development@example.com'
end
end
default from: default_from
default from: 'from@example.com'
layout 'mailer'
end

View File

@ -79,8 +79,7 @@ Rails.application.configure do
port: File.read("/run/secrets/smtp_port").strip.to_i,
user_name: File.read("/run/secrets/smtp_user_name").strip,
password: File.read("/run/secrets/smtp_password").strip,
authentication: File.read("/run/secrets/smtp_authentication").strip.to_sym,
tls: true
authentication: File.read("/run/secrets/smtp_authentication").strip.to_sym
}
rescue Errno::ENOENT
{}