XSLT Mapping for Outgoing Emails

This feature allows to define XSLT templates for manipulating data mapping of outgoing emails. All email specific data are available for the mapping. Additionally any ticket related data including dynamic fields are provided if an article is sent. The XSLT template must contain at least the following mappings:

To / Cc / Bcc

Desired additional email headers are set via the CustomHeaders element. Any empty element (for example due to missing mapping data) is rejected.

The difference of origin email data and mapped data is recorded in the Communication Log with priority debug.

Example XSLT template

This template can be used in the Sendmail::XSLT::Template system configuration setting.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" encoding="utf-8" indent="yes"/>
  <xsl:template match="/RootElement">
        <xsl:value-of select="/RootElement/To" />
        <xsl:value-of select="/RootElement/From" />
        <xsl:value-of select="/RootElement/Subject" />
        <xsl:value-of select="/RootElement/MimeType" />
        <xsl:value-of select="/RootElement/Charset" />
        <xsl:value-of select="/RootElement/Body" />
          <xsl:value-of select="/RootElement/Charset" />
          <xsl:value-of select="/RootElement/From" />
          <xsl:value-of select="/RootElement/Ticket/TicketNumber" />
Scroll to Top