Compare commits
No commits in common. "main" and "status-change-email" have entirely different histories.
main
...
status-cha
@ -3,16 +3,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ApplicationMailer < ActionMailer::Base
|
class ApplicationMailer < ActionMailer::Base
|
||||||
class << self
|
default from: 'from@example.com'
|
||||||
private
|
|
||||||
|
|
||||||
def default_from
|
|
||||||
File.read('/run/secrets/smtp_user_name').strip
|
|
||||||
rescue Errno::ENOENT
|
|
||||||
'development@example.com'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
default from: default_from
|
|
||||||
layout 'mailer'
|
layout 'mailer'
|
||||||
end
|
end
|
||||||
|
@ -79,8 +79,7 @@ Rails.application.configure do
|
|||||||
port: File.read("/run/secrets/smtp_port").strip.to_i,
|
port: File.read("/run/secrets/smtp_port").strip.to_i,
|
||||||
user_name: File.read("/run/secrets/smtp_user_name").strip,
|
user_name: File.read("/run/secrets/smtp_user_name").strip,
|
||||||
password: File.read("/run/secrets/smtp_password").strip,
|
password: File.read("/run/secrets/smtp_password").strip,
|
||||||
authentication: File.read("/run/secrets/smtp_authentication").strip.to_sym,
|
authentication: File.read("/run/secrets/smtp_authentication").strip.to_sym
|
||||||
tls: true
|
|
||||||
}
|
}
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
{}
|
{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user