Skip to content

Commit

Permalink
Let dev configure mail delivery method
Browse files Browse the repository at this point in the history
  • Loading branch information
val99erie committed Dec 7, 2017
1 parent 3fc8a1a commit 5eb66da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .env.sample
@@ -1,5 +1,7 @@
export ACTION_MAILER_HOST=localhost
export RAILS_HOST=localhost

export ACTION_MAILER_SMTP_DELIVERY_METHOD=smtp
export ACTION_MAILER_HOST=localhost
export ACTION_MAILER_SMTP_ADDRESS=**YOUR DATA HERE**
export ACTION_MAILER_PORT=**YOUR DATA HERE**
export ACTION_MAILER_USER_NAME=**YOUR DATA HERE**
Expand Down
2 changes: 1 addition & 1 deletion config/environments/development.rb
Expand Up @@ -31,7 +31,7 @@
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_caching = false
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.delivery_method = ENV['ACTION_MAILER_SMTP_DELIVERY_METHOD'].to_sym
config.action_mailer.smtp_settings = {
address: ENV['ACTION_MAILER_SMTP_ADDRESS'],
port: ENV['ACTION_MAILER_PORT'],
Expand Down

0 comments on commit 5eb66da

Please sign in to comment.