fix(email): use client/org name as From display, not Ladill product
Deploy Ladill Events / deploy (push) Successful in 45s
Deploy Ladill Events / deploy (push) Successful in 45s
Customer-facing outbound mail should appear from the business (organizer, clinic, company, location), not the Ladill product brand.
This commit is contained in:
@@ -133,6 +133,8 @@ class EventEmailService
|
||||
$brandingSettings = AccountBranding::forOwnerRef($ownerPublicId);
|
||||
$viewData['logoUrl'] = AccountBranding::emailLogoUrl($brandingSettings);
|
||||
$viewData['companyName'] = AccountBranding::companyName($brandingSettings);
|
||||
// From display: organizer name, else account/company branding — never "Ladill Events".
|
||||
$fromName = trim((string) ($replyToName ?: $viewData['companyName'] ?? '')) ?: null;
|
||||
|
||||
$html = View::make($view, $viewData)->render();
|
||||
$text = strip_tags(str_replace(['<br>', '<br/>', '<br />'], "\n", $html));
|
||||
@@ -145,6 +147,7 @@ class EventEmailService
|
||||
$text,
|
||||
$replyToEmail,
|
||||
$replyToName,
|
||||
$fromName,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user