Dynamic default url options
class ApplicationController < ActionController::Base
protect_from_forgery # See ActionController::RequestForgeryProtection for details
before_filter lambda {
ActionMailer::Base.default_url_options = {:host => request.host_with_port}
}
end