Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbuO6 #77

Open
chikadance opened this issue Dec 21, 2014 · 0 comments

Comments

@chikadance
Copy link

I'm sure my gmail can work

following is my code

require 'gmail'

gmail = Gmail.new("[email protected]", "mypasswd")

gmail.deliver do
  to "[email protected]"
  subject "Having fun in Puerto Rico!"
  text_part do
    body "Text of plaintext message."
  end
  html_part do
    content_type 'text/html; charset=UTF-8'
    body "<p>Text of <em>html</em> message.</p>"
  end
  add_file __FILE__
end

following is my log

/home/roroco/.rbenv/versions/2.1.5/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/roroco/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.4.24/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --port 47809 --dispatcher-port 54040 -- /home/roroco/Dropbox/rbs/ro_plans/ex/ex.rb
Fast Debugger (ruby-debug-ide 0.4.24, debase 0.1.1) listens on 127.0.0.1:47809
-> "220 mx.google.com ESMTP v4sm13796798pbs.10 - gsmtp\r\n"
<- "EHLO enormousoqecq\r\n"
-> "250-mx.google.com at your service, [180.150.141.247]\r\n"
-> "250-SIZE 35882577\r\n"
-> "250-8BITMIME\r\n"
-> "250-STARTTLS\r\n"
-> "250-ENHANCEDSTATUSCODES\r\n"
-> "250-PIPELINING\r\n"
-> "250-CHUNKING\r\n"
-> "250 SMTPUTF8\r\n"
<- "STARTTLS\r\n"
-> "220 2.0.0 Ready to start TLS\r\n"
<- "EHLO enormousoqecq\r\n"
-> "250-mx.google.com at your service, [180.150.141.247]\r\n"
-> "250-SIZE 35882577\r\n"
-> "250-8BITMIME\r\n"
-> "250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN\r\n"
-> "250-ENHANCEDSTATUSCODES\r\n"
-> "250-PIPELINING\r\n"
-> "250-CHUNKING\r\n"
-> "250 SMTPUTF8\r\n"
<- "AUTH PLAIN AGVub3Jtb3Vzb3FlY3FAZ21haWwuY29tAHVmdGtpdnFwZndmZW0=\r\n"
-> "534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbuO6\r\n"
-> "534-5.7.14 5A-WuB1THPDE6jJxd2Wxw8pbFHJPMNoMbMZ4NFvDlPxO7GXkZDMjT7kxtCFWSO0HhfoRqr\r\n"
-> "534-5.7.14 oGpfCwChe1xRmMPaUkDrWWXGw0lPbm3NpboJvXPyiui267S_HWX0C55tg7rV9YNDSsO1LH\r\n"
-> "534-5.7.14 uXC6azH6Hj026osU2EaUsZ_sBgSLVnMki2v8UAuJuwONFg9N-j5n9z-dbfJ4bk6iZ23Krz\r\n"
-> "534-5.7.14 EIpYI2O5kXn11WkovFppxxX9X1EM> Please log in via your web browser and\r\n"
-> "534-5.7.14 then try again.\r\n"
-> "534-5.7.14 Learn more at\r\n"
-> "534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 v4sm13796798pbs.10 - gsmtp\r\n"
Uncaught exception: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbuO6

    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/2.1.0/net/smtp.rb:969:in `check_auth_response'
    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/2.1.0/net/smtp.rb:740:in `auth_plain'
    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/2.1.0/net/smtp.rb:732:in `authenticate'
    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/ruby-gmail-0.3.1/lib/smtp_tls.rb:57:in `do_tls_start'
    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/ruby-gmail-0.3.1/lib/smtp_tls.rb:18:in `start'
    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/mail-2.6.1/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/mail-2.6.1/lib/mail/message.rb:248:in `deliver!'
    /home/roroco/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/ruby-gmail-0.3.1/lib/gmail.rb:107:in `deliver'
    /home/roroco/Dropbox/rbs/ro_plans/ex/ex.rb:5:in `<top (required)>'

Process finished with exit code 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant