Brand patient emails with organization logo.
Deploy Ladill Care / deploy (push) Successful in 54s

Wrap Bird patient mail in a customer-branded layout and show the logo preview in settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-12 20:07:34 +00:00
co-authored by Cursor
parent 6c14c3802c
commit 6c8a0e7e9f
5 changed files with 176 additions and 4 deletions
@@ -10,6 +10,7 @@ use App\Services\Care\OrganizationResolver;
use App\Services\Messaging\CustomerEmailClient;
use App\Services\Messaging\CustomerSmsClient;
use App\Services\Messaging\MessagingCredentialsService;
use App\Support\OrganizationBranding;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
@@ -46,7 +47,8 @@ class PatientMessageController extends Controller
]);
$owner = $this->ownerRef($request);
$html = nl2br(e($data['body']));
$organization = $this->organization($request);
$html = OrganizationBranding::wrapEmailHtml(nl2br(e($data['body'])), $organization);
$sent = $email->send(
$apiKey,
(string) $credential->bird_from_email,