mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
add: setfrom.
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user