fix(care): use clinic name as email From display, not Ladill Care
Deploy Ladill Care / deploy (push) Successful in 28s

Patient-facing suite (and Bird fallback) emails should appear from the
organization name. Stop defaulting from_name to CARE_SMTP_FROM_NAME.
Appointment notifications also prefer suite messaging with the same rule.
This commit is contained in:
isaacclad
2026-07-16 11:58:24 +00:00
parent 2a00d4321b
commit f7baa6ebf0
4 changed files with 79 additions and 33 deletions
+4 -1
View File
@@ -73,10 +73,13 @@ class PlatformEmailClient
->withHeaders(['Idempotency-Key' => $key])
->acceptJson()
->timeout(30)
// from_name: caller should pass the clinic/org name for patient-facing
// mail. Do not default to CARE_SMTP_FROM_NAME ("Ladill Care") — that is
// product branding; suite From display must look like the customer.
->post($this->base().'/messages/send', array_filter([
'user' => $ownerPublicId,
'channel' => 'suite',
'from_name' => $fromName ?? config('smtp.from_name'),
'from_name' => $fromName,
'to' => $to,
'subject' => $subject,
'html' => $html,