Index: branches/5.1.x/core/units/helpers/email_message_helper.php =================================================================== diff -u -N -r12657 -r13140 --- branches/5.1.x/core/units/helpers/email_message_helper.php (.../email_message_helper.php) (revision 12657) +++ branches/5.1.x/core/units/helpers/email_message_helper.php (.../email_message_helper.php) (revision 13140) @@ -1,7 +1,7 @@ _removeTrailingCRLF($ret); + $ret .= 'Subject: ' . $fields_hash['Subject'] . "\n\n"; + $ret .= $fields_hash['Body']; + + return $ret; + } + + /** + * Remove trailing CR/LF chars from string + * + * @param string $string + * @return string + */ + function _removeTrailingCRLF($string) + { + return preg_replace('/(\n|\r)+/',"\\1",$string); + } } \ No newline at end of file