A reference for the Vendor Management team on what the system emails to
vendors on your behalf, what lands in the vm@daytranslations.com inbox,
and where every admin action shows up in the audit trail.
Last updated: 2026-11-29. Owned by the admin portal team. For bugs or questions, ping Raghav.
TL;DR
- Every vendor-facing email also lands in
vm@daytranslations.comas a BCC. You see a copy of what the system sent, so you have a single thread of record without opening the activity log. - High-signal events send a dedicated ops alert on top of the BCC: new application, agreements signed, vendor deactivated, vendor soft-deleted, daily cron digest.
- Every admin action lives in two logs: the per-partner activity
timeline on the detail page, and the global
/admin/auditfeed. - Reply-to on every system email routes to
vm@daytranslations.comso a vendor's reply reaches a human regardless of the From domain.
Who this is for
- Vendor Managers, HR, and anyone with the
vmadmin role. - Anyone reviewing why a vendor was emailed, who approved them, or what state a partner is in.
Not for: PM-side assignment flows (see assignment runbook), or the customer-facing order flow.
The email policy
Every outbound vendor email BCCs the VM inbox
Any email the system sends to a vendor, applicant or external resource
is BCC'd to vm@daytranslations.com (the VENDOR_MANAGER_EMAIL env
var overrides this if VM ever moves to a different address).
The BCC is applied centrally in each sending endpoint, not at the mailer level, so the VM team sees exactly what the vendor sees without needing a shared mailbox integration or an audit-log lookup.
Dedicated ops alerts on top of the BCC
Five events also fire a separate, VM-specific alert. These are shaped differently from the vendor email, with facts tables and links to the right admin screen.
| Event | Ops subject |
|---|---|
| New applicant application | [VM] New application: <name> |
| All required agreements signed | [VM] Agreements signed: <name> |
| Vendor deactivated | [VM] <Translator|Interpreter> on hold: <name> |
| Vendor soft-deleted | [VM] <Translator|Interpreter> soft-deleted: <name> |
| Cron agreement-nudge batch | Digest of what was nudged that run |
Reply-to
Every system email sets Reply-To: vm@daytranslations.com regardless
of the From domain (orders@secure.daytranslations.com /
vendormanager@secure.daytranslations.com), so a vendor replying to
anything the system sent lands in the VM inbox.
What the vendor is emailed at each stage
Translator pipeline
| Action | Vendor email | Ops email | Notes |
|---|---|---|---|
| Apply (public form) | Receipt | New application alert | Receipt also BCC'd |
| VM sends invite | Invite link | — | — |
| VM moves to review | "We need more info" | — | — |
| VM approves | None (intentional) | — | Bundled with the next step |
| VM sends agreements | Signing invite | — | — |
| Partner signs all agreements | Signing complete | Agreements-signed alert | — |
| VM sends rate negotiation | Rate negotiation | — | — |
| VM sends rate reminder | Rate reminder | — | — |
| VM marks profile complete | "Your profile is active" | — | — |
| VM rejects | Rejection email with reason | — | — |
| VM deactivates | "Account on hold" | Deactivate alert | — |
| VM reactivates | "Account reactivated" | — | — |
| VM steps back | None (internal correction) | — | Still audited |
| VM soft-deletes | None (silent to vendor) | Soft-delete alert | Audit shows the move |
| PM creates externally | Welcome email with login | — | New flow 2026-11-29 |
Interpreter pipeline
| Action | Vendor email | Ops email | Notes |
|---|---|---|---|
| Apply (public form) | Receipt | New application alert | Same as translator |
| VM sends invite | Invite link | — | — |
| VM sends agreements | Signing invite | — | — |
| Partner signs all agreements | Signing complete | Agreements-signed alert | — |
| VM clicks "Sync BL" | None from us | — | Boost Lingo sends its own invite |
| VM marks "BL invite pending" | None | — | Internal flag |
| VM sends profile reminder | Profile-update reminder | — | — |
| VM marks complete | Completion email | — | — |
| VM deactivates | "Account on hold" | Deactivate alert | — |
| VM reactivates | "Account reactivated" | — | — |
| VM steps back | None (internal correction) | — | Still audited |
| VM soft-deletes | None (silent to vendor) | Soft-delete alert | Audit shows the move |
Invoice flow (both audiences)
| Action | Vendor email | Ops email |
|---|---|---|
| Partner submits invoice | — | Invoice-submitted alert |
| VM approves | Approved + schedule to pay | — |
| VM rejects | Rejected + reason | — |
| VM marks paid | Paid confirmation | — |
Cron jobs
| Cron | What it does | What VM receives |
|---|---|---|
| vm-agreement-nudge | Nudges partners with pending signatures | BCC on each vendor nudge + end-of-run digest |
| vm-sla-digest | Daily SLA breach summary | Full digest email to the VM inbox |
Where every action is logged
There are two logs, both populated for VM actions. They answer different questions.
Per-partner activity timeline
- Where: Applicant detail page → Activity tab.
- Source:
partner_activity_logtable +admin_audit_logmerged into one view, newest-first. - Use it when: you are looking at a specific vendor and want to see what has happened to their account.
- Records: every lifecycle move, agreement send + sign, rate negotiation + reminder, profile completion, record actions (deactivate/reactivate/step-back/delete), all 4 interpreter workflow actions (sync_bl, bl_invite_pending, profile reminder, mark complete), and the external-create event.
Global audit feed
- Where:
/admin/audit. - Source:
admin_audit_log. - Use it when: you want to see "who did what" across all partners in a time window, filter by actor or by action type, or investigate a change out of its partner context.
- Records: every admin mutation above. Self-signup applications are not here (no admin actor); they are in the apply telemetry tables and the per-partner activity row.
Every action write is non-fatal on its own: a logger hiccup never rolls back the DB update or the email send.
Recovery actions
A vendor says they never got an email
- Open the applicant detail page → Activity tab. The row for that email send carries the Resend message id in its metadata.
- Confirm the BCC: check
vm@daytranslations.comfor the same subject at the same timestamp. If it is there, the vendor's inbox (or their spam filter) is the issue, not ours. - For agreements: use the "Resend signing invite" button on the agreements card. For rate negotiation and bulk reminders, use the dedicated resend action on the detail page.
A vendor shows the wrong stage
- Open the stepper on the detail page. The current stage is
derived from
partner_accounts.workflow_stage. - Click Step back on the action bar to walk them back one stage. The record-action endpoint uses the correct pipeline per audience (translator vs interpreter) and writes both logs.
- If step_back is not sufficient (needs to jump multiple stages or go to a non-adjacent stage), use the lifecycle endpoint via the Approve / Reject / Request info buttons.
A vendor was deactivated by mistake
- Open the detail page → click Reactivate on the action bar.
- The vendor gets a "Welcome back" email, the VM inbox gets the
BCC, and
partner.reactivatedis written to both logs. - The vendor's status flips to
pending, notactive. Approving them back to active goes through the lifecycle endpoint so the vetting status is explicit.
A partner was soft-deleted and needs to come back
Soft-delete only sets deleted_at, it does not remove the row. There
is no restore button yet, so:
- Open
/admin/auditand find thepartner.soft_deletedrow for the partner. - Confirm with the actor that the delete was a mistake.
- Clear
deleted_atvia a SQL update (ping Raghav or anyone with DB access). Apartner.reactivatedlog row follows.
Configuration
| What | Env var | Default |
|---|---|---|
| VM inbox for BCC + ops alerts + reply-to | VENDOR_MANAGER_EMAIL |
vm@daytranslations.com |
| From header on vendor emails | RESEND_FROM_EMAIL |
Day Translations <orders@secure.daytranslations.com> |
| Resend API key | RESEND_API_KEY |
(required) |
Changing VENDOR_MANAGER_EMAIL takes effect on the next request
without a redeploy. If it is unset in production, vendor emails
still send (the default is applied) but confirm the default inbox
is being read.
For engineers: what to touch when adding a new action
A new VM action that mutates a partner should write to three places:
partner_accounts— the state change itself (single UPDATE).partner_activity_logviaappendPartnerActivity— the per-partner timeline source.admin_audit_logvialogAdminAction— the global audit feed. Theactionstring must be in theAuditActionunion insrc/lib/audit.ts, with a matching entry inAUDIT_ACTION_LABELS.
A new vendor-facing email should:
- Set
bcc: [vmInbox]wherevmInbox = process.env.VENDOR_MANAGER_EMAIL || 'vm@daytranslations.com'. - Set
replyTo: vmInbox. - Use a render function in
src/lib/partner-emails.ts(vendor-facing) orsrc/lib/ops-emails.ts(VM-facing) rather than hand-rolling HTML. - Treat Resend failures as non-fatal: the upstream DB write has already succeeded, so log and move on.