fixed mail sending
This commit is contained in:
parent
daa2fec5c7
commit
c468ba6479
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue