Cakephp email component bug in godaddy hosting

I always prefer to use PhpMailer class to send email as this is enough rich. Few days ago i was working in a cakephp application build. As i found it has email component, i tried to use that to send html email, but i failed. I talked to someone else who worked with this before, he didn’t face any problem. I thought, may be it’s a problem with godaddy hosting. Then  i debugged it step by step, find out the bug and fixed it. Here are the details -
I’ve added the following line on email component at line #500
and comment out line #502
// $this->_header[]=”;
Then it works fine for me.
Posted in CakePhp, Php Tagged: Email