Guide

The end-user manual for PageSeeder

 

external template

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

Email headers

NameValue
Auto-Submittedauto-generated
FromPageSeeder (DO NOT REPLY) pageseeder@[domain]
Subject[defined by template]
To member email address

XML

The XML source is arbitrary and is to the discretion of the application requiring a notification sent. However, it will be wrapped in a <notification> element before the XSLT transformation is processed. Here is an example:

<notification name="external" emaildomain="ps.pageseeder.com" hosturl="https://ps.pageseeder.com">
  <myformat>
    <sender email="dev@ps.pageseeder.com">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>
  </myformat>
</notification>

Content

The content is produced using the XSLT template, here is an example of such a template using the XML source provided above:

<?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <!-- Main template -->
  <xsl:template match="/notification/myformat">
    <html>
      <head>
        <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>
      </head>
      <body>
        <h1><xsl:copy-of select="heading" /></h1>
        <p><xsl:copy-of select="content" /></p>
        <hr/>
        <p><xsl:copy-of select="signature" /></p>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

 

And here is a screenshot of the resulting Email:

external2.png

Created on , last edited on