There's a small typo so that the subject isn't displayed in html format.
$Mbody = "<html>".$newline."<head>".$newline."<title>".$M
S ubject."</title>".$newline."</head><body>".$newline.$Mbody."</body>".$newline."</html>".$newline;
Should be "$Msubject"
I also put the text strings "From", "Subject" and "Date" into the language array.
If anyone is interested. Replace the last if/else statement with:
if ($user['U_EmailFormat'] != "HTML") { <br /> $Mbody = $ubbt_lang['EPM_FROM'].": ".$Msender.$newline.$ubbt_lang['EPM_SUBJECT'].": ".$Msubject.$newline.$ubbt_lang['EPM_DATE'].": ".$date.$newline.$newline; <br /> $Mbody .= $Mmessage; <br /> $Mbody = eregi_replace("<br />","$newline",$Mbody); <br /> } <br /> else { <br /> $Mbody = $ubbt_lang['EPM_FROM'].": ".$Msender."<br />".$newline.$ubbt_lang['EPM_SUBJECT'].": ".$Msubject."<br />".$newline.$ubbt_lang['EPM_DATE'].": ".$date."<br /><br />".$newline; <br /> $Mbody .= $Mmessage; <br /> $Mbody = str_replace("\"{$config['images']}","\"{$config['imageurl']}",$Mbody); <br /> $Mbody = str_replace("$newline","<br />$newline",$Mbody); <br /> $Mbody = "<html>".$newline."<head>".$newline."<title>".$Msubject."</title>".$newline."</head><body>".$newline.$Mbody."</body>".$newline."</html>".$newline; <br />
and add this to the gerneric.php language file:
$ubbt_lang['EPM_FROM'] = "From:"; <br />$ubbt_lang['EPM_SUBJECT'] = "Subject:"; <br />$ubbt_lang['EPM_DATE'] = "Date:";