mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
add: setfrom.
This commit is contained in:
parent
b03aa8d632
commit
39aa4c4a9a
1 changed files with 3 additions and 0 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue