Skip to content

Instantly share code, notes, and snippets.

@mijustin
Created May 9, 2014 21:06
Show Gist options
  • Save mijustin/2fd5ae632063b25ef618 to your computer and use it in GitHub Desktop.
Save mijustin/2fd5ae632063b25ef618 to your computer and use it in GitHub Desktop.
CASL snippet for DIY HTML version
<mymailout:consent type="unknown">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="color:#ffffff; background:#00a7dc;" bgcolor="#00a7dc">
<tr>
<td align="center"><table align="center" width="630" class="wrapper" border="0" cellpadding="0" cellspacing="0" style="
color:#ffffff;
background:#00a7dc;" bgcolor="#00a7dc">
<tr>
<td colspan="3" height="15" style="font-size:0;line-height:0;">&nbsp;</td>
</tr>
<tr valign="top">
<td width="15" style="font-size:0;line-height:0;">&nbsp;</td>
<td><table width="100%" cellpadding="0" cellspacing="0" border="0" class="wrapper" align="left">
<tr valign="middle">
<td><table cellspacing="0" cellpadding="0" border="0" align="left" width="60%" class="wrapper">
<tr>
<td align="center" style="font-size:0.9em; color:#ffffff;"><div>Under Canada&apos;s new anti-spam legislation, we are required to ask you for your consent. You can withdraw consent at any time.</div></td>
</tr>
<tr>
<td height="15" style="font-size:0;line-height:0;">&nbsp;</td>
</tr>
</table>
<!--[if gte mso 9]>
</td>
<td align="right">
<![endif]-->
<table cellspacing="0" cellpadding="0" border="0" align="right" width="28%" class="wrapper">
<tr>
<td align="center"><!--[if mso]>
<v:roundrect
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w="urn:schemas-microsoft-com:office:word"
href="http://www.EXAMPLE.com/"
style="height:50px;v-text-anchor:middle;width:165px;"
arcsize="20%"
stroke="f"
fillcolor="#9dcd67"
>
<w:anchorlock/>
<center style="color:#ffffff; font-family:sans-serif;font-size:13px;font-weight:bold;">
I want to Continue Receiving Emails
</center>
</v:roundrect>
<![endif]-->
<![if !mso]>
<mymailout:consentlink style="
padding:0;
margin:0;
background-color:#9dcd67;
border-top:10px solid #9dcd67;
border-bottom:10px solid #9dcd67;
border-left:20px solid #9dcd67;
border-right:20px solid #9dcd67;
-moz-border-radius:20px;
-webkit-border-radius:20px;
border-radius:20px;
-webkit-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.5);
box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.5);
color:#ffffff;
display:inline-block;
font-family:sans-serif;
font-size:13px;
font-weight:bold;
text-align:center;
text-decoration:none;
-webkit-text-size-adjust:none;" title="Register your consent"> I want to Continue Receiving Emails </mymailout:consentlink>
<![endif]></td>
</tr>
<tr>
<td height="15" style="font-size:0;line-height:0;">&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
<td width="15" style="font-size:0;line-height:0;">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#222222" height="1" style="font-size:0; line-height:0;">&nbsp;</td>
</tr>
</table>
</mymailout:consent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment