This project is not covered by Drupal’s security advisory policy.

This module addresses the use case where you need to send raw XML or some other text format from Webform submissions in the message body that Drupal's default core would otherwise filter tags out of to generate plain text. It also allows override of the main mail message MIME type.

The functionality is configurable at the Webform node level under the Edit e-mail settings » E-mail template » Webform Email Raw settings, and is disabled by default.

Tested with Webform 7.x-3.x, not guarantees it will work on anything older. There are no plans to backport to D6.


Emailing raw, unfiltered (filter_xss) data from a Webform submission can be risky, so only use this module if you absolutely require this behavior and understand the risks. The ideal scenario is a machine receiving and processing the emails vs. going to an inbox that is opened by an interactive mail client.


My employer Phase2 Technology graciously supported my turning this internally developed module into a contrib module.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Mail
  • chart icon61 sites report using this module
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.