Skip to content

Commit

Permalink
Merge pull request #56 from rockandror/fix-smtp-setting-key
Browse files Browse the repository at this point in the history
Fix smtp configuration key to allow load smtp settings
  • Loading branch information
Senen authored Oct 14, 2019
2 parents 916a9c0 + a120e00 commit 1d44c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smtp_configuration.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class SmtpConfiguration
def self.set_configuration
if (Rails.env.production? || Rails.env.staging? || Rails.env.preproduction?) && Setting[:smtp_configuration]
if (Rails.env.production? || Rails.env.staging? || Rails.env.preproduction?) && Setting["feature.smtp_configuration"].present?
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: Setting["smtp.address"],
Expand Down

0 comments on commit 1d44c0e

Please sign in to comment.