Created
August 3, 2012 00:24
-
-
Save franzejr/3242574 to your computer and use it in GitHub Desktop.
Sending emails with sendmail - ssmtp - Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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