fix(care): use clinic name as email From display, not Ladill Care
Deploy Ladill Care / deploy (push) Successful in 28s
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user