Gmail on heroku with Rails 3

后端 未结 5 839
不知归路
不知归路 2021-01-11 16:08

I am trying to send emails from Heroku up and running. At the moment I can send emails from Heroku via the \"tutorial\" at http://blog.heroku.com/archives/2009/11/9/tech_sen

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-11 16:20

    Did you export those environment variables on your local machine? You say you're adding the GMAIL_SMTP... to heroko config, but are you:

    $ export GMAIL_SMTP_USER=username@gmail.com $ export GMAIL_SMTP_PASSWORD=yourpassword

    I ran into your question because I also have email working in dev, and wondered if the 2009 post about how to get smtp & gmail to work on heroku is still necessary. Apparently so.

提交回复
热议问题