dcparker / ruby-gmail

A Rubyesque interface to Gmail. Connect to Gmail via IMAP and manipulate emails and labels. Send email with your Gmail account via SMTP. Includes full support for parsing and generating MIME messages.
http://dcparker.github.com/ruby-gmail
790 stars 123 forks source link

Net::SMTPAuthenticationError #23

Closed bryanroth closed 11 years ago

bryanroth commented 14 years ago

I keep getting this error every time I try to send an email:

gmail.deliver(email) Net::SMTPAuthenticationError: 530 5.7.0 Must issue a STARTTLS command first. g4sm20621052ybh.7

    from /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:679:in `auth_plain'
    from /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:673:in `__send__'
    from /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:673:in `authenticate'
    from /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:488:in `do_start'
    from /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:440:in `start'
    from /usr/lib/ruby/gems/1.8/gems/mail-2.2.1/lib/mail/network/delivery_methods/smtp.rb:101:in `deliver!'
    from /usr/lib/ruby/gems/1.8/gems/mail-2.2.1/lib/mail/message.rb:238:in `deliver!'
    from /usr/lib/ruby/gems/1.8/gems/ruby-gmail-0.2.1/lib/gmail.rb:85:in `deliver'
jackbit commented 14 years ago

Check your login to make it works like its username or password and make sure that you are not out of session. Or go to gmail.rb and next go to line 163, and edit like this:

:enable_starttls_auto => false

Good Luck, Yacobus Reinhart www.reinhartlab.com

myobie commented 11 years ago

This is related to #22