diff --git a/scripts/build_trucking_campaigns.py b/scripts/build_trucking_campaigns.py index b486ccd..fd34a72 100644 --- a/scripts/build_trucking_campaigns.py +++ b/scripts/build_trucking_campaigns.py @@ -187,7 +187,9 @@ def send_test(base: dict, campaign_id: int, sample_row: tuple, label: str, tz: s body = body.replace("{{ .Subscriber.Attribs.company }}", name or "Sample Carrier LLC") body = body.replace("{{ .Subscriber.Attribs.dot_number }}", dot or "0000000") body = body.replace("{{ .Subscriber.Attribs.state }}", state or "TX") - body = body.replace("{{ UnsubscribeURL }}", "https://performancewest.net/unsubscribe") + # NOTE: leave {{ UnsubscribeURL }} alone — Listmonk renders it into a real, + # working per-subscriber unsubscribe link (even on test sends). Overwriting it + # produced a dead /unsubscribe link with no subscriber identity. subj = base["subject"].replace("{{ .Subscriber.Attribs.dot_number }}", dot or "0000000") # Listmonk /test needs `lists` as an array of IDs (base["lists"] is objects) list_ids = [l["id"] for l in base.get("lists", []) if isinstance(l, dict)] or [1] diff --git a/site/public/order/dot-compliance/index.html b/site/public/order/dot-compliance/index.html index 7604a1d..9a7e915 100644 --- a/site/public/order/dot-compliance/index.html +++ b/site/public/order/dot-compliance/index.html @@ -44,7 +44,7 @@ Sign out
Performance West is a dedicated transportation compliance firm serving thousands of motor carriers nationwide. We combine deep regulatory expertise with purpose-built filing technology so your paperwork is done right, done fast, and tracked every step of the way.
-