Configuration manual for PageSeeder

External email template

This notification can be sent using a PageSeeder service. For further information, see send-mail service.

Email headers

FromDepends on service from parameter or defined by template.
SubjectDepends on service subject parameter or defined by template.
ToDepends on service notify parameter.
Reply-ToDepends on XML <replyto> element or defined by template.

There is a default XSLT template which requires a certain XML format but ultimately the XML source is arbitrary and at the discretion of the application sending the notification.


The content given to the send-mail service will automatically be wrapped in a <notification> element and have a <group> element added before the XSLT transformation is processed.

Default XML

Below is an example of the XML supported by the default XSLT template.

<notification template="external" description="External" unsubscribetoken="sample-token" emaildomain="" hosturl="">
      <replyto name="My App" email=""></replyto>
      <content type="text/plain">External email!
This is an external email.</content>
      <content type="application/xhtml+xml">
        <h4>External email!</h4>
        <p>This is an <b>external</b> email.</p>
    <group id="3" name="acme-test" description="The ACME testing group"></group>

Default appearance

Below is a a screenshot of how the default XSLT template would format the above XML.


Arbitrary XML

Below is an example of arbitrary XML source.

<notification template="external"
    <sender email="">PS Dev Team</sender>
    <heading>Welcome Email!</heading>
    <content>This is an external email with some <b>HTML</b>
               content.  </content>
    <signature>The PageSeeder Dev Team</signature>
  <group id="3" name="acme-test" description="The ACME testing group"></group>


Below is an example of a message created by processing the arbitrary XML source with the following XSLT template.

<?xml version="1.0"?>
     <xsl:stylesheet version="2.0" 
  <!-- Main template -->
  <xsl:template match="/notification/myformat">
        <meta http-equiv="Content-Type" content="text/html;
                   charset=UTF-8" />
        <meta name="sender-name" content="{sender}" />
        <meta name="sender-email" content="{sender/@email}" />
        <title>Email title</title>
        <h1><xsl:copy-of select="heading" /></h1>
        <p><xsl:copy-of select="content" /></p>
        <p><xsl:copy-of select="signature" /></p>


Generated email message 



Created on , last edited on