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
792 stars 123 forks source link

530 5.7.0 Must issue a STARTTLS command first #22

Closed jenix closed 10 years ago

jenix commented 14 years ago

My ruby version is 1.8.6, and my OS is Centos5.4 32bit [root@domU-12-31-39-03-4A-54 ~]# gem list

* LOCAL GEMS *

activesupport (2.3.5) log4r (1.1.7) mail (2.2.1) mime (0.1) mime-types (1.16) net-sftp (2.0.3) net-ssh (2.0.15) polyglot (0.3.1) ruby-gmail (0.2.1) shared-mime-info (0.1) tlsmail (0.0.1) tmail (1.2.7.1) treetop (1.4.5) xml-simple (1.0.12)

Error message while running my sample code. Previosly I have install ruby-gamil ver 0.8 and it works but I get failed after ugrate to the latest version. /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:679:in auth_plain': 530 5.7.0 Must issue a STARTTLS command first. w29sm21914057vcr.2 (Net::SMTPAuthenticationError) from /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:673:insend' 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:indo_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:indeliver!' 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:indeliver' from test.rb:19

jackbit commented 14 years ago

I advice you to use it as vendor / plugin not gem, and then 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 10 years ago

I can't reproduce this so I am closing this for now. If this happens then please open a new issue.