Right now I\'m using this which works for the development host, but I have to manually change the {:host => \"\"} code when I move to production.
For me whats worked is
ActionMailer::Base.default_url_options = { host: "yourhosthere"} # e.g. yourhosthere=localhost:3000 or yourhosthere=example.com
because if you already set a port in the config files then changing the [:host] only will result in an error
TypeError (no implicit conversion of Symbol into Integer):