try: disable config.action_mailer.default_url_options = { :host => "www.jhola.com" }