Skip to content

Instantly share code, notes, and snippets.

@metamn
Created May 28, 2009 09:40
Show Gist options
  • Save metamn/119201 to your computer and use it in GitHub Desktop.
Save metamn/119201 to your computer and use it in GitHub Desktop.
script/generate mailer mailer
config/environments/development.rb
ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.sendmail_settings = {
:location => '/usr/sbin/sendmail',
:arguments => '-i -t' }
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "iso-8859-1"
config/environments/production.rb
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "domain.com",
:user_name => "[email protected]",
:password => "password",
:authentication => :plain
}
config/environment.rb
ActionMailer::Base.register_template_extension('haml')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment