Thank you Ryan, very interesting episode!
I'm trying to get the mailer to work on heroku. I did heroku addons:add sendgrid:starter
but whenever I try to send an email from heroku, I get this error:
ruby
2012-07-18T23:14:05+00:00 heroku[router]: GET guestlist12.herokuapp.com/assets/application-ea8b32131f736b7d8bc98f7cb199c9cf.css dyno=web.1 queue=0 wait=0ms service=11ms status=304 bytes=02012-07-18T23:14:10+00:00 app[web.1]:
2012-07-18T23:14:10+00:00 app[web.1]:
2012-07-18T23:14:10+00:00 app[web.1]: StartedPOST"/password_resets"for68.5.179.249 at 2012-07-1823:14:10 +00002012-07-18T23:14:10+00:00 app[web.1]: Processing by PasswordResetsController#create as HTML2012-07-18T23:14:10+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"H1VHMVJocUWdwzwVV0AbLB1Pfqgug+jT846sE794ISA=", "email"=>"cedric.waldburger@mediasign.ch", "commit"=>"Reset Password"}
2012-07-18T23:14:10+00:00 app[web.1]: Rendered user_mailer/password_reset.text.erb (0.8ms)
2012-07-18T23:14:13+00:00 app[web.1]: Sent mail to cedric.waldburger@mediasign.ch (3117ms)
2012-07-18T23:14:13+00:00 app[web.1]: Completed500InternalServerErrorin3410ms
2012-07-18T23:14:13+00:00 app[web.1]:
2012-07-18T23:14:13+00:00 app[web.1]: app/models/user.rb:37:in`send_password_reset'
2012-07-18T23:14:13+00:00 app[web.1]:
2012-07-18T23:14:13+00:00 app[web.1]: app/controllers/password_resets_controller.rb:7:in `create'
2012-07-18T23:14:13+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
Anyone else had this problem? Any ideas how to fix this?
Thank you Ryan, very interesting episode!
I'm trying to get the mailer to work on heroku. I did
heroku addons:add sendgrid:starter
but whenever I try to send an email from heroku, I get this error:
Anyone else had this problem? Any ideas how to fix this?
Thanks in advance!