Permalink
Browse files

change mailer config to provide a gmail example; load all available m…

…ailer settings;
  • Loading branch information...
1 parent 13aa78a commit 37228cf551d175e1fd4b37d9bd5a446319c664ca @basiszwo basiszwo committed with Nov 8, 2010
Showing with 8 additions and 7 deletions.
  1. +1 −7 config/environment.rb
  2. +7 −0 config/mailer.yml.sample
View
@@ -6,17 +6,11 @@
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
-MAILER = YAML.load_file("#{RAILS_ROOT}/config/mailer.yml")
-
Rails::Initializer.run do |config|
config.time_zone = 'UTC'
config.action_controller.page_cache_directory = RAILS_ROOT + "/public/cache"
- config.action_mailer.smtp_settings = {
- :address => MAILER['address'],
- :port => MAILER['port'],
- :domain => MAILER['domain']
- }
+ config.action_mailer.smtp_settings = YAML.load_file("#{RAILS_ROOT}/config/mailer.yml")
end
View
@@ -1,3 +1,10 @@
address: smtp.host.com
port: 25
domain: host.com
+
+# for gmail use the configuration below
+# address: smtp.gmail.com
+# port: 587
+# domain: host.com
+# user_name: mail@gmail.com
+# password: mysupergmailsecret

0 comments on commit 37228cf

Please sign in to comment.