Use ActionMailer::Base.default_url_options for #4