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

Gem is unusable, "Please log in via your web browser" #83

Closed ilovemysillybanana closed 8 years ago

ilovemysillybanana commented 8 years ago

/home/jose/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/imap.rb:1171:in get_tagged_response': Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure) (Net::IMAP::NoResponseError) from /home/jose/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/imap.rb:1225:inblock in send_command' from /home/jose/.rbenv/versions/2.2.3/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' from /home/jose/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/imap.rb:1207:insend_command' from /home/jose/.rbenv/versions/2.2.3/lib/ruby/2.2.0/net/imap.rb:435:in login' from /home/jose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/ruby-gmail-0.3.1/lib/gmail.rb:114:inlogin' from /home/jose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/ruby-gmail-0.3.1/lib/gmail.rb:23:in initialize' from CollegeEmailSpammer.rb:18:innew' from CollegeEmailSpammer.rb:18:in gmailer' from CollegeEmailSpammer.rb:37:in

'

tobyhinloopen commented 8 years ago

Same here :(

ilovemysillybanana commented 8 years ago

I'm not sure why this one doesn't or didn't work, I ended up using a different gem but it seems to use either of these gems with just the basic set up you'll have to change the security settings on your account.

You might wanna try it after doing that: https://support.google.com/accounts/answer/6010255?hl=en

tobyhinloopen commented 8 years ago

That worked for me as well. :) Thanks

zipizap commented 8 years ago

Could not get it to work either:

imap.rb:1156:in `get_tagged_response':  Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure) (Net::IMAP::NoResponseError)

You might wanna try it after doing that: https://support.google.com/accounts/answer/6010255?hl=en

Tried it but unfurtonately it was not enough, the error persists...

petethepig commented 8 years ago

Same here, did this:

https://support.google.com/accounts/answer/6010255?hl=en

petethepig commented 8 years ago

Sorry, it was enabled for a different account

hakanai commented 6 years ago

Mine was already enabled but I'm getting the error. I also tried visiting https://www.google.com/accounts/DisplayUnlockCaptcha and have confirmed it over and over, and it doesn't do anything. :(