fix: remove unnecessary null coalescing on senderEmail

This commit is contained in:
harsh mahajan
2026-05-20 16:27:52 +05:30
parent 43b9bf8152
commit 8272aa6fa2
@@ -128,7 +128,7 @@ class Update extends Action
$mail->Host = $smtp['host'] ?? '';
$mail->Port = $smtp['port'] ?? '';
$mail->SMTPSecure = $smtp['secure'] ?? '';
$mail->setFrom($smtp['senderEmail'] ?? '', $smtp['senderName'] ?? '');
$mail->setFrom($smtp['senderEmail'], $smtp['senderName'] ?? '');
if (!empty($smtp['username'] ?? '')) {
$mail->SMTPAuth = true;