Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

tls not working with action mailer in Rails 2.3.3 with Ruby 1.9.1

#3289

Hi - I have been trying to get action mailer to work with the restful_authentication plugin and a gmail account but have been unable to get past the following error

Net::SMTPAuthenticationError (530 5.7.0 Must issue a STARTTLS command first.

My understanding (after much checking) is that Rails 2.3.3 and Ruby 1.9.1 (any beyond 1.8.7) should have tls functionality built in and all that should be required to get it operating is to pass :enable_starttls_auto => true to the config.action_mailer.smtp_settings hash (although, checking the docs, it looks like true is the default, but everyone was throwing it in there, so I figured it couldn't hurt). This is not working for me though and I am wondering if anyone else has experienced either success or failure in this regard with these specific versions.

My settings are as follows -

config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = {

:address              => 'smtp.gmail.com',
:port                 => 587,    
:domain               => 'gmail.com',    
:user_name            => 'sanjuancoop@gmail.com',    
:password             => '**gmail-password**',
:authentication       => :plain,
:enable_starttls_auto => true

}

And the mailer code is pretty much exactly what got spit out by restful_authentication. The errors happen when I try to signup. So, once again, if others would share their experiences with tls on these versions of ruby and rails that would be greatly appreciated.

Reported by metasoarous · September 28th, 2009 @ 02:02 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Dewayne Richardson
    Dewayne Richardson

    I also have tried the exact same above and am having the same issues with:

    ruby -v
    ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

    Rails 2.3.3

    October 20th, 2009 @ 08:55 PM

  2. Rizwan Reza
    Rizwan Reza
    • Tag changed from 1.9.1, 2.3.3, actionmailer, action_mailer, restful_authentication to 1.9.1, 2.3.3, actionmailer, action_mailer, bugmash, restful_authentication

    May 15th, 2010 @ 05:25 PM

  3. Álvaro Gil
    Álvaro Gil

    I couldn't reproduce it on master using...

    ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0], MBARI 0x6770, Ruby Enterprise Edition 2009.10

    May 15th, 2010 @ 07:10 PM

  4. Curtis Carter
    Curtis Carter

    I could not reproduce on 2.3.3 using:
    ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin10.3.0] OR
    ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.3.0]

    There are the known issues with < 1.8.7 since before 1.8.7 didn't support tls.

    May 23rd, 2010 @ 04:36 AM

  5. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale

    Closing ticket, if this is still an issue for somebody please make a comment to reopen the ticket and I'll oblige.

    June 23rd, 2010 @ 03:35 AM