errors with actionmailer + gmail

trying to get a rails app to work with Gmail under ruby 1.8.6, but getting some weird errors, any help really appreciated.

Basically I installed the openrain-tls gem from here: http://github.com/openrain/action_mailer_tls/tree/master

then added my settings to : smtp_gmail.rb

John Griffiths wrote:

trying to get a rails app to work with Gmail under ruby 1.8.6, but getting some weird errors, any help really appreciated.

then added my settings to : smtp_gmail.rb

------------- require "smtp_tls"

ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = {   :enable_starttls_auto => true,   :address => "smtp.gmail.com",   :port => 587,   :domain => 'mydomain.com',   :authentication => :plain,   :user_name => 'email@mydomain.com',   :password => 'password' }

any ideas?

would really love to know where i'm going wrong, basically followed his example below to the letter, don't know where i've gone wrong.

hi John

better you switch to ruby 1.8.7 as Ruby 1.8.7 supports SMTP TLS. https://rails.lighthouseapp.com/projects/8994/tickets/1336-starttls-for-smtp-makes-gmail-go

I will not suggess install a plugin (in 1.8.6) for something that was fixed, trialled, and used in later versions.

anyway for ruby 1.8.6 you can try this one:

regards -Abhishek Singh

got it working in the end, managed to find a copy of smtp-tls in github, forked and wiki'd the how-to

http://wiki.github.com/johnantoni/smtp-tls/how-to-for-rails-232-ruby-186

should help anyone else in the same position, works like a dream!