Skip to content

Commit 03e1b42

Browse files
committed
Try Different Native Unsubscribe Preferences
* Follow docs at https://docs.sendgrid.com/ui/sending-email/index-suppressions#managing-unsubscribes to insert unsubscribe url. * Use example at https://github.com/sendgrid/email-templates/blob/master/dynamic-templates/newsletter/news_feed.html#L384 for unsubscribe preferences link.
1 parent 0fab95b commit 03e1b42

File tree

1 file changed

+82
-75
lines changed

1 file changed

+82
-75
lines changed

.github/workflows/newsletter_template.html

Lines changed: 82 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
text-decoration: underline;
182182
}
183183
li {
184-
margin: 0 0 .5rem 0;
184+
margin: 0 0 0.5rem 0;
185185
line-height: 1.5rem;
186186
}
187187
#templateBody {
@@ -323,13 +323,13 @@
323323
class="mcnTextBlockInner"
324324
style="padding-top: 9px">
325325
<!--[if mso]>
326-
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
327-
<tr>
328-
<![endif]-->
326+
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
327+
<tr>
328+
<![endif]-->
329329

330330
<!--[if mso]>
331-
<td valign="top" width="600" style="width:600px;">
332-
<![endif]-->
331+
<td valign="top" width="600" style="width:600px;">
332+
<![endif]-->
333333
<table
334334
align="left"
335335
border="0"
@@ -358,13 +358,13 @@
358358
</tbody>
359359
</table>
360360
<!--[if mso]>
361-
</td>
362-
<![endif]-->
361+
</td>
362+
<![endif]-->
363363

364364
<!--[if mso]>
365-
</tr>
366-
</table>
367-
<![endif]-->
365+
</tr>
366+
</table>
367+
<![endif]-->
368368
</td>
369369
</tr>
370370
</tbody>
@@ -374,19 +374,19 @@
374374
</tbody>
375375
</table>
376376
<!--[if (gte mso 9)|(IE)]>
377-
</td>
378-
</tr>
379-
</table>
380-
<![endif]-->
377+
</td>
378+
</tr>
379+
</table>
380+
<![endif]-->
381381
</td>
382382
</tr>
383383
<tr>
384384
<td align="center" valign="top" id="templateHeader">
385385
<!--[if (gte mso 9)|(IE)]>
386-
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
387-
<tr>
388-
<td align="center" valign="top" width="600" style="width:600px;">
389-
<![endif]-->
386+
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
387+
<tr>
388+
<td align="center" valign="top" width="600" style="width:600px;">
389+
<![endif]-->
390390
<table
391391
align="center"
392392
border="0"
@@ -454,19 +454,19 @@
454454
</tbody>
455455
</table>
456456
<!--[if (gte mso 9)|(IE)]>
457-
</td>
458-
</tr>
459-
</table>
460-
<![endif]-->
457+
</td>
458+
</tr>
459+
</table>
460+
<![endif]-->
461461
</td>
462462
</tr>
463463
<tr>
464464
<td align="center" valign="top" id="templateBody">
465465
<!--[if (gte mso 9)|(IE)]>
466-
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
467-
<tr>
468-
<td align="center" valign="top" width="600" style="width:600px;">
469-
<![endif]-->
466+
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
467+
<tr>
468+
<td align="center" valign="top" width="600" style="width:600px;">
469+
<![endif]-->
470470

471471
<table
472472
align="center"
@@ -484,19 +484,19 @@
484484
</tbody>
485485
</table>
486486
<!--[if (gte mso 9)|(IE)]>
487-
</td>
488-
</tr>
489-
</table>
490-
<![endif]-->
487+
</td>
488+
</tr>
489+
</table>
490+
<![endif]-->
491491
</td>
492492
</tr>
493493
<tr>
494494
<td align="center" valign="top" id="templateFooter">
495495
<!--[if (gte mso 9)|(IE)]>
496-
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
497-
<tr>
498-
<td align="center" valign="top" width="600" style="width:600px;">
499-
<![endif]-->
496+
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
497+
<tr>
498+
<td align="center" valign="top" width="600" style="width:600px;">
499+
<![endif]-->
500500
<table
501501
align="center"
502502
border="0"
@@ -564,13 +564,13 @@
564564
align="center"
565565
valign="top">
566566
<!--[if mso]>
567-
<table align="center" border="0" cellspacing="0" cellpadding="0">
568-
<tr>
569-
<![endif]-->
567+
<table align="center" border="0" cellspacing="0" cellpadding="0">
568+
<tr>
569+
<![endif]-->
570570

571571
<!--[if mso]>
572-
<td align="center" valign="top">
573-
<![endif]-->
572+
<td align="center" valign="top">
573+
<![endif]-->
574574

575575
<table
576576
align="left"
@@ -646,12 +646,12 @@
646646
</table>
647647

648648
<!--[if mso]>
649-
</td>
650-
<![endif]-->
649+
</td>
650+
<![endif]-->
651651

652652
<!--[if mso]>
653-
<td align="center" valign="top">
654-
<![endif]-->
653+
<td align="center" valign="top">
654+
<![endif]-->
655655

656656
<table
657657
align="left"
@@ -727,12 +727,12 @@
727727
</table>
728728

729729
<!--[if mso]>
730-
</td>
731-
<![endif]-->
730+
</td>
731+
<![endif]-->
732732

733733
<!--[if mso]>
734-
<td align="center" valign="top">
735-
<![endif]-->
734+
<td align="center" valign="top">
735+
<![endif]-->
736736

737737
<table
738738
align="left"
@@ -808,12 +808,12 @@
808808
</table>
809809

810810
<!--[if mso]>
811-
</td>
812-
<![endif]-->
811+
</td>
812+
<![endif]-->
813813

814814
<!--[if mso]>
815-
<td align="center" valign="top">
816-
<![endif]-->
815+
<td align="center" valign="top">
816+
<![endif]-->
817817

818818
<table
819819
align="left"
@@ -889,12 +889,12 @@
889889
</table>
890890

891891
<!--[if mso]>
892-
</td>
893-
<![endif]-->
892+
</td>
893+
<![endif]-->
894894

895895
<!--[if mso]>
896-
<td align="center" valign="top">
897-
<![endif]-->
896+
<td align="center" valign="top">
897+
<![endif]-->
898898

899899
<table
900900
align="left"
@@ -970,13 +970,13 @@
970970
</table>
971971

972972
<!--[if mso]>
973-
</td>
974-
<![endif]-->
973+
</td>
974+
<![endif]-->
975975

976976
<!--[if mso]>
977-
</tr>
978-
</table>
979-
<![endif]-->
977+
</tr>
978+
</table>
979+
<![endif]-->
980980
</td>
981981
</tr>
982982
</tbody>
@@ -1029,9 +1029,9 @@
10291029
</tbody>
10301030
</table>
10311031
<!--
1032-
<td class="mcnDividerBlockInner" style="padding: 18px;">
1033-
<hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" />
1034-
-->
1032+
<td class="mcnDividerBlockInner" style="padding: 18px;">
1033+
<hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" />
1034+
-->
10351035
</td>
10361036
</tr>
10371037
</tbody>
@@ -1050,13 +1050,13 @@
10501050
class="mcnTextBlockInner"
10511051
style="padding-top: 9px">
10521052
<!--[if mso]>
1053-
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
1054-
<tr>
1055-
<![endif]-->
1053+
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
1054+
<tr>
1055+
<![endif]-->
10561056

10571057
<!--[if mso]>
1058-
<td valign="top" width="600" style="width:600px;">
1059-
<![endif]-->
1058+
<td valign="top" width="600" style="width:600px;">
1059+
<![endif]-->
10601060
<table
10611061
align="left"
10621062
border="0"
@@ -1080,18 +1080,25 @@
10801080
>Copyright © {{ post.year }}
10811081
Code for Boston, All rights
10821082
reserved.</em
1083-
><br />
1083+
>
1084+
<br />
10841085
<br />
10851086
<br />
1086-
<strong
1087-
>Our mailing address is:</strong
1088-
><br />
1087+
<strong>
1088+
Our mailing address is:
1089+
</strong>
1090+
<br />
10891091
972 Mission St, 5th floor, San
10901092
Francisco, CA 94103
10911093
<br />
10921094
<br />
1093-
<a href="{{{unsubscribe}}}"
1094-
>Click here to unsubscribe.</a
1095+
<a href="<%asm_group_unsubscribe_raw_url%>">
1096+
Click here to unsubscribe.
1097+
</a>
1098+
|
1099+
<a
1100+
href="[Unsubscribe_Preferences]"
1101+
>Unsubscribe Preferences</a
10951102
>
10961103
<br />
10971104
</td>

0 commit comments

Comments
 (0)