From 39aa4c4a9a3ad31c5effc0dcbe552d26d407070f Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 10 Dec 2025 15:14:55 +0530 Subject: [PATCH] add: setfrom. --- src/Appwrite/Platform/Workers/Mails.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Appwrite/Platform/Workers/Mails.php b/src/Appwrite/Platform/Workers/Mails.php index 959d6e39e5..5664628754 100644 --- a/src/Appwrite/Platform/Workers/Mails.php +++ b/src/Appwrite/Platform/Workers/Mails.php @@ -158,6 +158,9 @@ class Mails extends Action if (!empty($senderEmail)) { $replyTo = $senderEmail; $replyToName = $senderName; + + // set again since these can be a diff. + $mail->setFrom($senderEmail, $senderName); } elseif (!empty($smtp)) { $replyTo = !empty($smtp['replyTo']) ? $smtp['replyTo'] : $smtp['senderEmail']; $replyToName = $smtp['senderName'];