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

前端 未结 4 935
死守一世寂寞
死守一世寂寞 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:38

    I solved by doing the following:

    1) Log into the Google Apps Admin portal and enable Less Secure Apps by checking "Allow users to manage their access to less secure apps" under Security preferences.

    2) Login into the account that will serve as the mailer and turn "Allow less secure apps" to ON.

    Most of the answers available on-line refer to step 2, but you cannot configure at a user level without the Admin turning the feature on.

提交回复
热议问题