From c468ba6479ec9e9c885692bba69f55df4ce62864 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 2 Feb 2020 20:39:44 +0100 Subject: [PATCH] fixed mail sending --- lam/lib/account.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index efeae0dc..05720b02 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -1370,7 +1370,7 @@ function sendEMail($to, $subject, $text, $headers, $returnPath) { } logNewMessage(LOG_DEBUG, "Send mail to $to\n" . $text); $additionalParams = null; - if (isCommandlineSafeEmailAddress($returnPath)) { + if (!empty($returnPath) && isCommandlineSafeEmailAddress($returnPath)) { $additionalParams = '-f' . $returnPath; } return mail($to, base64EncodeForEMail($subject), $text, $headers, $additionalParams);