Project

General

Profile

Feature #21921 ยป 013168_v1.patch

Administrator Admin, 2010-01-08 12:11

View differences:

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;
}
    (1-1/1)