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

$this->_createBoundary();

and comment out line #502

// $this->_header[]=”;

Then it works fine for me.

Advertisements

3 thoughts on “Cakephp email component bug in godaddy hosting

  1. Wow. You obviously put no effort into this blog post. Line 500 can change as Cake gets constantly updated. Why didn’t you include the FULL script that you changed? Because that would have made too much sense?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s