Running into SMTP error when trying to send email in RoR app

前端 未结 4 934
死守一世寂寞
死守一世寂寞 2020-12-05 20:47

I\'ve been desperately trying to send an email using the Action Mailer class in RoR, and even though the terminal shows that a message is being sent, it keeps returning with

4条回答
  •  我在风中等你
    2020-12-05 21:39

    The reason that you are seeing this error is that Google has blocked your IP. You will need to enable authorization for this IP.

    Go to http://www.google.com/accounts/DisplayUnlockCaptcha and click continue.

    Then again try to send email from the application, it should work. You will need to send email from your app within 10 min of visiting the above link. By visiting above link, Google will grant access to register new apps for 10 min.

提交回复
热议问题