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
|
||||
|
||||
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
|
||||
|
@ -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
|
||||
{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user