When pear package mail_mime is missing, attempt to send html email throws error:
mail() expects parameter 3 to be string, array given. This is because the code
doesn't unset the html part of the body when falling back to text email
Change-Id: Ie8c73a481cb9003a0b43893cf4751475bdf5c690
wfDebug( "Assembling multipart mime email\n" );
if ( !stream_resolve_include_path( 'Mail/mime.php' ) ) {
wfDebug( "PEAR Mail_Mime package is not installed. Falling back to text email.\n" );
+ // remove the html body for text email fall back
+ $body = $body['text'];
}
else {
require_once 'Mail/mime.php';