feat(messaging): prefer message reply-to over provider default

buildEmailMessage now reads replyToEmail/replyToName from the message
data, falling back to the provider options when unset.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ArnabChatterjee20kandClaude Opus 4.8 committed 2026-09-21 11:16:25 +05:30
1 parent 776493f53d
commit 502b531d4a
1 file changed
+2 -2
+2 -2
View File
@@ -1076,9 +1076,9 @@ class Messaging extends Action
): Email {
$fromName = $provider['options']['fromName'] ?? null;
$fromEmail = $provider['options']['fromEmail'] ?? null;
$replyToEmail = $provider['options']['replyToEmail'] ?? null;
$replyToName = $provider['options']['replyToName'] ?? null;
$data = $message['data'] ?? [];
$replyToEmail = !empty($data['replyToEmail']) ? $data['replyToEmail'] : ($provider['options']['replyToEmail'] ?? null);
$replyToName = !empty($data['replyToName']) ? $data['replyToName'] : ($provider['options']['replyToName'] ?? null);
$ccTargets = $data['cc'] ?? [];
$bccTargets = $data['bcc'] ?? [];
$cc = [];