Class: CommandTower::ApplicationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/command_tower/application_mailer.rb

Constant Summary collapse

FALLBACK_FROM =
"from@example.com"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.smtp_from_addressObject



10
11
12
# File 'app/mailers/command_tower/application_mailer.rb', line 10

def self.smtp_from_address
  CredentialResolution.resolve(:smtp).user_name.presence || FALLBACK_FROM
end

Instance Method Details

#smtp_from_addressObject



14
15
16
# File 'app/mailers/command_tower/application_mailer.rb', line 14

def smtp_from_address
  self.class.smtp_from_address
end