Skip to content

Commit

Permalink
add SSL verification options to smtp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Sep 12, 2015
1 parent 1a50eac commit 7349e43
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/smtp.yml
Expand Up @@ -6,6 +6,9 @@ development:
enable_starttls_auto: <%= ENV['SMTP_ENABLE_STARTTLS_AUTO'] == 'true' ? true : false %>
user_name: <%= ENV['SMTP_USER_NAME'] || "" %>
password: <%= ENV['SMTP_PASSWORD'] || "" %>
openssl_verify_mode: <%= ENV['SMTP_OPENSSL_VERIFY_MODE'].presence || 'null' %>
ca_path: <%= ENV['SMTP_OPENSSL_CA_PATH'].presence || 'null' %>
ca_file: <%= ENV['SMTP_OPENSSL_CA_FILE'].presence || 'null' %>

staging:
address: <%= ENV['SMTP_SERVER'] || "smtp.gmail.com" %>
Expand All @@ -15,6 +18,9 @@ staging:
enable_starttls_auto: <%= ENV['SMTP_ENABLE_STARTTLS_AUTO'] == 'true' ? true : false %>
user_name: <%= ENV['SMTP_USER_NAME'] || "" %>
password: <%= ENV['SMTP_PASSWORD'] || "" %>
openssl_verify_mode: <%= ENV['SMTP_OPENSSL_VERIFY_MODE'].presence || 'null' %>
ca_path: <%= ENV['SMTP_OPENSSL_CA_PATH'].presence || 'null' %>
ca_file: <%= ENV['SMTP_OPENSSL_CA_FILE'].presence || 'null' %>

production:
address: <%= ENV['SMTP_SERVER'] || "smtp.gmail.com" %>
Expand All @@ -23,4 +29,7 @@ production:
authentication: <%= ENV['SMTP_AUTHENTICATION'] || "plain" %>
enable_starttls_auto: <%= ENV['SMTP_ENABLE_STARTTLS_AUTO'] == 'true' ? true : false %>
user_name: <%= ENV['SMTP_USER_NAME'] || "" %>
password: <%= ENV['SMTP_PASSWORD'] || "" %>
password: <%= ENV['SMTP_PASSWORD'] || "" %>
openssl_verify_mode: <%= ENV['SMTP_OPENSSL_VERIFY_MODE'].presence || 'null' %>
ca_path: <%= ENV['SMTP_OPENSSL_CA_PATH'].presence || 'null' %>
ca_file: <%= ENV['SMTP_OPENSSL_CA_FILE'].presence || 'null' %>

0 comments on commit 7349e43

Please sign in to comment.