Repository navigation
[WEBSITE-723] Add a Personal email template so founder emails don't look like marketing - #83
Merged
Merged
Conversation
Founder check-ins sent from FluentCRM automations arrived with the marketing footer, an unsubscribe header that makes Gmail show an "Unsubscribe" link beside the sender, an open-tracking pixel and click-tracking redirects, so they read as marketing. A "Personal" template in FluentCRM's template picker sends the body and preheader only, leaves off the List-Unsubscribe header, and turns open and click tracking off for that email. Marketing stays any stock template; transactional stays FluentCRM's own checkbox. Tracking is switched off in fluentcrm_email_body_text because FluentCRM adds click tracking before it renders the template. Part of WEBSITE-723.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Dec 4, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A founder check-in sent from a FluentCRM automation arrived looking like marketing: the footer with the mailing address and unsubscribe links, a List-Unsubscribe header that makes Gmail show "Unsubscribe" next to the sender, an open-tracking pixel, and links rewritten through click tracking. FluentCRM's template picker now has a Personal template. An email using it goes out as the body and preheader only, with no footer, no List-Unsubscribe header, no pixel and direct links, so it reads like a typed email.
For review: tracking is switched off in memory on the email's campaign inside
fluentcrm_email_body_text, because FluentCRM adds click tracking and the pixel after that filter but before it renders the template. Check that nothing other than an email using the Personal template is affected.Part of WEBSITE-723
What changed
CustomCRM\Email\PersonalTemplate, registered next toFounderSender(filtercustomcrm/personal_template/enabled).fluent_crm/email_design_templatesaddsgk_personal("Personal") to the picker, with the Plain Left style config so the editor's style panel works.fluent_crm/email-design-template-gk_personalrenders a bare HTML document: the hidden preheader when set, then the parsed body. No footer, no "view in browser" link.fluentcrm_email_body_textsets the campaign'sopen_trackerandclick_trackertonofor a Personal email.Campaign::getOpenTrackingStatus()/getClickTrackingStatus()read those first.fluent_crm/enable_unsub_headerreturns false for a Personal email.AGENTS.md: a Personal email template section, including that the editor preview still draws FluentCRM's footer.Blast radius
customcrm/personal_template/enabledand template IDgk_personal(both new). Hooks into FluentCRM'sfluent_crm/email_design_templates,fluent_crm/email-design-template-{id},fluentcrm_email_body_textandfluent_crm/enable_unsub_header, read in FluentCRM 3.3.1 (production) and present in 3.3.5 (wordpress.org latest).used-by.sh, 0 hits).Release: none (internal gravitykit.com plugin; customers don't install it).
Tests
php84 vendor/bin/phpunit: 245 tests pass; the email tests also on PHP 7.4. Making the template never match its own emails fails 2 tests.Mailer::send(), captured in Mailpit, one Personal email and one Simple Boxed control:Abilities: none. Internal site plumbing.
Screenshots
Template picker (Email-Body sidebar, second icon tab):
Sent with the Personal template (Mailpit, browser default font; Gmail uses its own):
Same email with Simple Boxed, for comparison: