Closed jenix closed 10 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
I can't reproduce this so I am closing this for now. If this happens then please open a new issue.
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:in
send' from /usr/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/net/smtp.rb:673:inauthenticate' 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:instart' 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:indeliver!' from /usr/lib/ruby/gems/1.8/gems/ruby-gmail-0.2.1/lib/gmail.rb:85:in
deliver' from test.rb:19