* (bug 4001) Use local variables properly in wikibits.js akeytt()
* Fix regression: old version missing from edit links on CSS/JS pages
* (bug 3073) Keep search parameter on paging in Special:Newimages
+* (bug 3211) Include Date, To mail headers when using PEAR::Mail
=== Caveats ===
$timestamp = time();
$headers['From'] = $from;
+ $headers['To'] = $to;
if ( $replyto ) {
$headers['Reply-To'] = $replyto;
}
$headers['Subject'] = $subject;
+ $headers['Date'] = date( 'r' );
$headers['MIME-Version'] = '1.0';
$headers['Content-type'] = 'text/plain; charset='.$wgOutputEncoding;
$headers['Content-transfer-encoding'] = '8bit';
if ($mailResult === true) {
return '';
} elseif (is_object($mailResult)) {
+ wfDebug( "PEAR::Mail failed: " . $mailResult->getMessage() . "\n" );
return $mailResult->getMessage();
} else {
+ wfDebug( "PEAR::Mail failed, unknown error result\n" );
return 'Mail object return unknown error.';
}
} else {