set config.action_mailer.default_url_options = { :host => "mgd-realtor.herokuapp.com" } in Production env.