CodeIgniter Forums
multipart mail header issue (+fix) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: multipart mail header issue (+fix) (/showthread.php?tid=15453)



multipart mail header issue (+fix) - El Forum - 02-05-2009

[eluser]Unknown[/eluser]
(I mentioned this as a bug report already, but I guess most people check the bug forum first ..)

Multipart (eg. html) mail includes a warning text for non-mime capable mail clients(“This is a multi-part message in MIME format…”), but that warning starts directly after the real mailheaders (without an empty line), which is wrong. To fix, an extra newline is needed before this text, so in bamboo_system_files/libraries/Email.php, change all occurrences of

$hdr .= $this->_get_mime_message() . $this->newline . $this->newline;

to:

$hdr .= $this->newline . $this->_get_mime_message() . $this->newline . $this->newline;

For the rest, I refer to the bugreport: http://codeigniter.com/bug_tracker/bug/6681/

Franky