Configuration

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

NameValue
Auto-Submittedauto-generated
FromPageSeeder (DO NOT REPLY) <pageseeder@emaildomain> or defined by template.
SubjectDefined by template.
ToDepends on service notify parameter.

XML

The XML source is arbitrary and at the discretion of the application sending the notification. However, the source will be wrapped in a <notification> element before the XSLT transformation is processed. Following is an example:

<notification template="external"
           emaildomain="example.org"
               hosturl="https://example.org">
  <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>

XSLT

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

<?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>

 

Result

Generated email message 

 

external2.png

Created on , last edited on