DOT D&A delivery email: point CTA + body to the customer portal
The instant-delivery email told customers to 'just reply to this email' with no way to view/manage their order. Add a portal line in the body and change the CTA to 'View in Portal' pointing at PORTAL_URL (portal.performancewest.net), matching delivery_worker/renewal_worker conventions. Add _site_url()/_portal_url() helpers.
This commit is contained in:
parent
9718ab9ffa
commit
7c79cc9a08
1 changed files with 16 additions and 4 deletions
|
|
@ -44,6 +44,16 @@ logging.basicConfig(
|
|||
PORT = int(os.getenv("WORKER_PORT", "8090"))
|
||||
MAX_WORKERS = int(os.getenv("MAX_WORKERS", "3"))
|
||||
|
||||
|
||||
def _site_url() -> str:
|
||||
"""Public site base URL for customer-facing links (no trailing /)."""
|
||||
return os.getenv("SITE_URL", "https://performancewest.net").rstrip("/")
|
||||
|
||||
|
||||
def _portal_url() -> str:
|
||||
"""Customer portal base URL where clients view orders (no trailing /)."""
|
||||
return os.getenv("PORTAL_URL", "https://portal.performancewest.net").rstrip("/")
|
||||
|
||||
# Job tracking
|
||||
active_jobs: dict[str, dict] = {}
|
||||
completed_jobs: list[dict] = [] # Last 100 completed
|
||||
|
|
@ -858,8 +868,10 @@ def _send_instant_delivery(
|
|||
"Section 8.",
|
||||
"Because it is a Word file, you and your attorney can edit it "
|
||||
"freely to match your operation.",
|
||||
"Questions or need a correction? Just reply to this email or "
|
||||
"contact us at <a href=\"mailto:info@performancewest.net\" "
|
||||
"You can view this binder and track all your filings any time in "
|
||||
"your client portal.",
|
||||
"Questions or need a correction? Reply to this email or contact us "
|
||||
"at <a href=\"mailto:info@performancewest.net\" "
|
||||
"style=\"color:#059669;\">info@performancewest.net</a> — "
|
||||
"we'll help right away at no additional charge.",
|
||||
"<span style=\"font-size:13px;color:#6b7280;\">This fee is tax "
|
||||
|
|
@ -867,8 +879,8 @@ def _send_instant_delivery(
|
|||
"</span>",
|
||||
"— Performance West Compliance Team",
|
||||
]
|
||||
cta_text = "Manage My DOT Compliance"
|
||||
cta_url = "https://performancewest.net/services/dot-drug-alcohol"
|
||||
cta_text = "View in Portal \u2192"
|
||||
cta_url = _portal_url()
|
||||
headline = "Your DOT Drug & Alcohol Compliance Binder is ready"
|
||||
else:
|
||||
body_parts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue