diff --git a/config/environments/staging.rb b/config/environments/staging.rb index fe4480f76..b451781fe 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -71,6 +71,8 @@ protocol: (ENV["MAIL_LINK_PROTO"] || "https") } + # Retrieve SMTP configuration from environment variables + # starting with `SMTP_` smtp_env = Hash[ENV.map do |k,v| if /^SMTP_(.*)$/ === k [$1.downcase.to_sym, YAML.load(v)]