Skip to content

Instantly share code, notes, and snippets.

@nathanhornby
Last active August 29, 2015 14:06
Show Gist options
  • Save nathanhornby/ae8cdf7e7e384c74dade to your computer and use it in GitHub Desktop.
Save nathanhornby/ae8cdf7e7e384c74dade to your computer and use it in GitHub Desktop.
An email template for Symphony CMS notifications
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />
<xsl:template match="/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>New website enquiry</title>
</head>
<body style="margin:0;padding:0;background-color:#eee;">
<!-- Body -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin:0;padding:0;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;color:#141B21;">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" align="center" width="550px">
<tr>
<td style="text-align:center;">
<p style="font-size:16px;line-height:1.5;font-weight:bold">RE: <xsl:value-of select="/data/email-contact-form/entry/reason" /> enquiry</p>
<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%" style="background-color:#fff;padding:10px 25px;text-align:left;margin-top:20px;">
<tr>
<td>
<p style="font-size:16px;line-height:1.5;"><strong>Name: </strong><xsl:value-of select="/data/email-contact-form/entry/name" /></p>
<p style="font-size:16px;line-height:1.5;"><strong>Company: </strong><xsl:value-of select="data/email-contact-form/entry/company" /></p>
<p style="font-size:16px;line-height:1.5;"><strong>Email: </strong><xsl:value-of select="/data/email-contact-form/entry/email" /></p>
<p style="font-size:16px;line-height:1.5;"><strong>Phone: </strong><xsl:value-of select="/data/email-contact-form/entry/phone" /></p>
<p style="font-size:16px;line-height:1.5;"><strong>Message: </strong><xsl:value-of select="/data/email-contact-form/entry/message" /></p>
</td>
</tr>
</table>
<p style="font-size:12px;padding:20px 0;">This automated notification was sent to you by the <strong><a href="{/data/params/root}" style="font-weight:bold;color:#141B21">XXX</a></strong> website.</p>
<p style="font-size:12px;">
<strong>XXX</strong><br/>
XXX<br/>
XXX<br/>
XXX<br/>
XXX<br/>
XXX<br/>
XXX
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</xsl:template>
<xsl:strip-space elements="*"/>
</xsl:stylesheet>
@nathanhornby
Copy link
Author

Although uploaded as an issue reference, I've updated the GIST for future use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment