mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: remove redundant senderEmail empty check before setFrom
This commit is contained in:
1 parent
d3994b436d
commit
43b9bf8152
1 file changed
+1
-4
@@ -128,10 +128,7 @@ class Update extends Action
|
||||
$mail->Host = $smtp['host'] ?? '';
|
||||
$mail->Port = $smtp['port'] ?? '';
|
||||
$mail->SMTPSecure = $smtp['secure'] ?? '';
|
||||
|
||||
if (!empty($smtp['senderEmail'] ?? '')) {
|
||||
$mail->setFrom($smtp['senderEmail'], $smtp['senderName'] ?? '');
|
||||
}
|
||||
$mail->setFrom($smtp['senderEmail'] ?? '', $smtp['senderName'] ?? '');
|
||||
|
||||
if (!empty($smtp['username'] ?? '')) {
|
||||
$mail->SMTPAuth = true;
|
||||
|
||||
Reference in new issue
Block a user