Skip to content

Instantly share code, notes, and snippets.

@georgeroubie
Created February 20, 2017 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgeroubie/aacb8b47dc3c3f0de2cb4399d48fdcaf to your computer and use it in GitHub Desktop.
Save georgeroubie/aacb8b47dc3c3f0de2cb4399d48fdcaf to your computer and use it in GitHub Desktop.
When you submit an Orchard CMS form you need to notify user-admin. This is a basic email template.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{Site.SiteName}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body style="margin: 0px; padding: 0px;">
<table border="0" align="center" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;" bgcolor="#eeebeb">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="600" style="border-collapse: collapse;" bgcolor="#ffffff">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;" bgcolor="#eeebeb">
<tr>
<td style="font-size: 0; line-height: 0;" height="50">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#666666">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
<tr>
<td style="font-size: 0; line-height: 0;" height="30">&nbsp;</td>
</tr>
<tr>
<td style="font-family: Verdana; font-size:40px; font-weight: 600; color: #ffffff; text-align:center;" height="60">
{Request.Form:FormName} Form
</td>
</tr>
<tr>
<td style="font-size: 0; line-height: 0;" height="30">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
<tr>
<td style="font-size: 0; line-height: 0;" height="20">&nbsp;</td>
</tr>
<tr>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
<td width="160" style="text-align: left; font-family: Verdana; font-size: 14px; line-height: 20px; color: #666666;">
<b>Email:</b>
</td>
<td width="400" style="text-align: left; font-family: Verdana; font-size: 14px; line-height: 20px; color: #666666;">
{FormSubmission.Field:Email}
</td>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
</tr>
<tr>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
<td width="160" style="text-align: left; font-family: Verdana; font-size: 14px; line-height: 20px; color: #666666;">
<b>Message:</b>
</td>
<td width="400" style="text-align: left; font-family: Verdana; font-size: 14px; line-height: 20px; color: #666666;">
{FormSubmission.Field:Message}
</td>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
</tr>
<tr>
<td style="font-size: 0; line-height: 0;" height="20">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
<tr>
<td style="font-size: 0; line-height: 0;" width="150">&nbsp;</td>
<td align="center" width="300" bgcolor="#666666">
<table cellspacing="0" cellpadding="0" width="100%" style="border-collapse: collapse;">
<tr>
<td style="font-size: 0; line-height: 0;" height="10">&nbsp;</td>
</tr>
<tr>
<td height="22" align="center">
<a href="{Site.BaseUrl}/Orchard.DynamicForms/SubmissionAdmin/Index/{Request.Form:FormName}"
style="color:#ffffff; font-family:'Source Sans Pro', Helvetica, Arial, sans-serif; font-size:18px; font-weight:400; line-height:22px; text-align:center; text-decoration:none; -webkit-text-size-adjust:none;">
For more details go to CMS
</a>
</td>
</tr>
<tr>
<td style="font-size: 0; line-height: 0;" height="10">&nbsp;</td>
</tr>
</table>
</td>
<td style="font-size: 0; line-height: 0;" width="150">&nbsp;</td>
</tr>
<tr>
<td style="font-size: 0; line-height: 0;" height="20">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#eeebeb">
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;">
<tr>
<td style="font-size: 0; line-height: 0;" height="50">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment