Within config/environments go to production.rb, at the bottom put
config.action_mailer.default_url_options = { :host => 'http://nameofyourherokuapp.herokuapp.com' }
ensure you have your smtp settings in there also as you would in your development environment