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:
@@ -74,10 +74,12 @@ class PlatformEmailClient
|
||||
->withHeaders(['Idempotency-Key' => $key])
|
||||
->acceptJson()
|
||||
->timeout(30)
|
||||
// from_name: pass the organizer/company display name. Do not default
|
||||
// to EVENTS_SMTP_FROM_NAME ("Ladill Events") — attendee mail is from 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