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
+2 -1
View File
@@ -102,7 +102,8 @@ class CareSuiteMessagingTest extends TestCase
Http::assertSent(function ($request) {
return str_contains($request->url(), '/messages/send')
&& ($request['channel'] ?? null) === 'suite'
&& ($request['user'] ?? null) === $this->user->public_id;
&& ($request['user'] ?? null) === $this->user->public_id
&& ($request['from_name'] ?? null) === 'Suite Clinic';
});
}