Sending Emails with inline images[solved] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Sending Emails with inline images[solved] (/showthread.php?tid=30604) |
Sending Emails with inline images[solved] - El Forum - 05-20-2010 [eluser]Clooner[/eluser] I extended the email class to support inline images. I updated the attach function of the class like so Code: function attach($filename, $disposition = 'attachment', $content_id = '') and I updated the following code of the build_message function. Code: $h .= "name=\"".$basename."\"".$this->newline; Code: $h .= "name=\"".$basename."\"".$this->newline; this works really well in most major webmail clients and desktop clients except thunderbird. I already tried to change the charset and encoding as well as redefine how cr and newlines are done. I tried a lot already but basically I don't know where to look for the problem and thus don't know what to fix. I was hoping someone could point me in the right direction for getting the inline images to work correctly. Sending Emails with inline images[solved] - El Forum - 05-20-2010 [eluser]Clooner[/eluser] I found the solution of showing inline messages in all mail clients by switching the content-type from multipart/mixed to multipart/related. I updated the my_email class which now overrules the $multipart variable in the email class Code: var $multipart = 'related'; |