Feature #21921 ยป 013168_v1.patch
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
$headers = trim(implode(chr(10), t3lib_div::trimExplode(chr(10), $headers, true))); // Make sure no empty lines are there.
|
||
$ret = @mail($email, $subject, $message, $headers);
|
||
if (!$ret) {
|
||
t3lib_div::sysLog('Mail to "'.$email.'" could not be sent (Subject: "'.$subject.'").', 'Core', 3);
|
||
if (!$ret) {
|
||
self::sysLog('Mail to "'.$email.'" could not be sent (Subject: "'.$subject.'").', 'Core', 3);
|
||
} else {
|
||
self::sysLog('Mail to "'.$email.'" sent successfully (Subject: "'.$subject.'").', 'Core', 0);
|
||
}
|
||
return $ret;
|
||
}
|