Heroku not sending email with Gmail SMTP

后端 未结 3 1415
既然无缘
既然无缘 2020-12-04 02:45

The app works everything, I\'m trying to use Confirmable with Devise, on my Rails app it says that the email was sent, but I never receive it. I\'m configuring it with Gmail

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 03:31

    I was running into a similar issue. The problem I was having was that I wasn't telling Heroku to copy my configuration variables over to Heroku as environment variables. I used the figaro gem and the smtp email worked after entering this command:

    figaro heroku:set -e production
    

    I would recommend that you make sure that you are using the correct gmail username and password.

    For more information checkout this tutorial. I can confirm that it works http://usingname.space/2015/07/25/gmail-smtp-ruby-on-rails-actionmailer-and-you/

提交回复
热议问题