Permalink
Browse files

SMPT setup for development environment

  • Loading branch information...
1 parent 19df975 commit c884912d3f19bdc8903446ef4151bde7399662f0 @RajRoR committed Dec 5, 2012
Showing with 15 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +3 −1 config/environments/development.rb
  3. +11 −0 config/initializers/setup_mail.rb.example
View
@@ -16,6 +16,7 @@
/log/*.log
/tmp
/config/database.yml
+/config/initializers/setup_mail.rb
# Ignore test coverage results
/coverage
@@ -19,6 +19,8 @@
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
+ config.action_mailer.perform_deliveries = false
+
# Print deprecation notices to the Rails logger
config.active_support.deprecation = :log
@@ -37,4 +39,4 @@
config.signature_secret = ENV['SIGNATURE_SECRET'] || "abc123" # FIXME: for some reason this does not work for me in development
p ENV
p config.signature_secret
-end
+end
@@ -0,0 +1,11 @@
+if Rails.env == 'development'
+ ActionMailer::Base.smtp_settings = {
+ :address => "smtp.gmail.com",
+ :port => "587",
+ :domain => 'localhost:3000',
+ :user_name => '<USERNAME>',
+ :password => '<PASSWORD>',
+ :authentication => 'plain',
+ :enable_starttls_auto => true
+ }
+end

0 comments on commit c884912

Please sign in to comment.