You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve unsubscribe link in email footer (#2646)
- Add clickable HTML link in default footer template instead of plain URL
- Restructure buildRenderedContent to return bodyHtml and footerHtml separately
- Apply link tracking only to body content, add footer AFTER tracking
- This ensures unsubscribe link is not trackable and displays properly as "Click here to unsubscribe"
Copy file name to clipboardExpand all lines: supabase/functions/email-campaigns/index.ts
+30-28Lines changed: 30 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -355,7 +355,11 @@ function defaultFooterTemplate(ownerEmail: string): string {
355
355
if(CAMPAIGN_COMPLIANCE_FOOTER){
356
356
returnCAMPAIGN_COMPLIANCE_FOOTER;
357
357
}
358
-
return`${COMPLIANCE_SEPARATOR}\n\nYou received this email because ${ownerEmail} used leadminer.io to extract contacts from their mailbox. Try https://leadminer.io yourself.\n\n${UNSUBSCRIBE_TEXT_SUFFIX}: {{unsubscribeUrl}}`;
358
+
return`${COMPLIANCE_SEPARATOR}
359
+
360
+
You received this email because ${ownerEmail} used leadminer.io to extract contacts from their mailbox. Try https://leadminer.io yourself.
0 commit comments