zhessy
zhessy

Reputation: 49

Sending emails with "Rails 2.2.2 + Gmail"

How to send emails with "Rails 2.2.2 + Gmail"? I have tried several methods with smtp_tls, but not succeed. Who can give me an available tsl plugin download link and an actionmailer smtp_setting?

Upvotes: 0

Views: 591

Answers (3)

sarahhodne
sarahhodne

Reputation: 10114

You could try to use Pony with the gmail fix, if you only need something lightweight.

Upvotes: 0

Peer Allan
Peer Allan

Reputation: 4014

here is a specific lib for this http://github.com/dcparker/ruby-gmail Its just ruby so integrating it into your rails scripts should be no problem

Upvotes: 0

khelll
khelll

Reputation: 24020

Rails 2.2.1 ships with an option to enable it if you're running Ruby 1.8.7.

To set it all up, in config/initializers/smtp_gmail.rb, make sure to set :enable_starttls_auto to true.

ActionMailer::Base.smtp_settings = {
  :address => "smtp.gmail.com",
  :port => 587,
  :authentication => :plain,
  :enable_starttls_auto => true,
  :user_name => "noreply@gmail_or_your_google_domain.com",
  :password => "chucknorris"
}

Otherwise try ActionMailerTLS gem or plugin.

Upvotes: 2

Related Questions