RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.

Home Page:http://railsapps.github.io/rails-stripe-membership-saas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No email on Heroku

opened this issue · comments

No problems with my app running on heroku production. But when a user uses the "Forgot your password?" link, the heroku logs show:
2014-05-07T17:49:53.844106+00:00 app[web.1]: Sent mail to username@gmail.com (480ms)
2014-05-07T17:49:53.848546+00:00 app[web.1]: Redirected to https://myapp.herokuapp.com/users/sign_in

But no email is ever received by any user. And I currently have the production app using a gmail account to send this just to make sure it works. I have checked the gmail account as well and nothing shows in the sent folder. It works fine in dev mode, or at least it shows in the dev logs that it is sending, along with the complete text of the email.

I tried or checked out about 10 different solutions on stackoverflow but nothing yet.

Any ideas??

Since the issue is specific to Heroku, you should be able to get help from Heroku support.

But first you should check that development mode actually sends real email that gets delivered.

Checked it and It does send correctly from dev mode. I’ll check with Heroku support.

On May 8, 2014, at 3:53 PM, Daniel Kehoe notifications@github.com wrote:

Since the issue is specific to Heroku, you should be able to get help from Heroku support.

But first you should check that development mode actually sends real email that gets delivered.


Reply to this email directly or view it on GitHub.

I got the production site on Heroku to send the “Forgot your password?” email properly now. I made the mistake forgetting that the figaro gem overrides the different email address I had in the initializer devise.rb file.

However, when the user clicked on the link in the email to reset their password they were taken to a error “Not Found” page on the site.

I fixed that by changing the following line in production.rb, I needed to add the ":protocol =>’https’” part since I am forcing the site to use https:
config.action_mailer.default_url_options = { :protocol =>'https',:host => 'www.domain.com' }

On May 8, 2014, at 3:53 PM, Daniel Kehoe notifications@github.com wrote:

Since the issue is specific to Heroku, you should be able to get help from Heroku support.

But first you should check that development mode actually sends real email that gets delivered.


Reply to this email directly or view it on GitHub.

Glad to see you resolved the issue. Thanks for reporting the details as I'm sure it will help others.