headers already sent by

hi

i send a mail with

application.extensions.phpmailer.JPhpMailer

and i got this error but mail sent to destinator

Error 500

Cannot modify header information - headers already sent by (output started at /var/www/cames.org/agreg2015/framework/web/CController.php:794)

it is ok, i put this code before in the file CController.php

ob_start(‘My_OB’);

function My_OB($str, $flags)

{

//remove UTF-8 BOM


$str = preg_replace("/\xef\xbb\xbf/","",$str);





return $str;

}