Skip to content

Instantly share code, notes, and snippets.

@franzejr
Created August 3, 2012 00:24
Show Gist options
  • Save franzejr/3242574 to your computer and use it in GitHub Desktop.
Save franzejr/3242574 to your computer and use it in GitHub Desktop.
Sending emails with sendmail - ssmtp - Linux
#Using ssmtp to send emails in Rails 3
#http://franzejr.wordpress.com/2012/08/02/sending-emails-from-a-ubuntu-server-gmail/
#http://franzejr.wordpress.com/2012/08/03/sending-e-mails-with-sendmail-in-rails-3/
#In your environment.rb
ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.sendmail_settings = {
:location => "ssmtp",
:arguments => "-i"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment