I think internally the params object is the parsed version of the actual original message body in the HTTP request. All mail data is published the same way (as raw data), but the params hash in ActionController has already analyzed this into an easy-to-use hash. If you really need the source data from the form, you can access it through the raw_post method of the request object itself.
The documentation for ActionController :: Request.raw_post is here for rails3, but has been available since at least 2.3.8 (the only version 2.3. X version I checked). I think it was likely to be available longer.
In the controller, try self.request.raw_postto get the raw data as a string.
source
share