2007-05-01 Martin Kutschker <martin.t.kutschker@blackbox.net>
* Fixed bug #2515: jsfunc.validateform.js does not verify password fields (thanks to Joerg Wagner)
+ * Fixed bug #5158: log failed mailings of t3lib_div::plainMailEncoded()
2007-04-30 Michael Stucki <michael@typo3.org>
* @param string Encoding type: "base64", "quoted-printable", "8bit". Default value is "quoted-printable".
* @param string Charset used in encoding-headers (only if $encoding is set to a valid value which produces such a header)
* @param boolean If set, the header content will not be encoded.
- * @return void
+ * @return boolean True if mail was accepted for delivery, false otherwise
*/
function plainMailEncoded($email,$subject,$message,$headers='',$encoding='quoted-printable',$charset='',$dontEncodeHeader=false) {
if (!$charset) {
$headers=trim(implode($linebreak,t3lib_div::trimExplode(chr(10),$headers,1))); // Make sure no empty lines are there.
- mail($email,$subject,$message,$headers);
+ $ret = @mail($email,$subject,$message,$headers);
+ if (!$ret) {
+ t3lib_div::sysLog('Mail to "'.$email.'" could not be sent (Subject: "'.$subject.'").', 'Core', 3);
+ }
+ return $ret;
}
/**