CodeIgniter Forums
Email library with inline images - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Email library with inline images (/thread-40681.html)



Email library with inline images - El Forum - 04-15-2011

[eluser]Unknown[/eluser]
Greetings!

I am a programmer at a hungarian company named Dicentra.
We are using Codeigniter for our websites, since it is very effective and useful for any kind of websites.

Recently we've got a request from one of our customers, he wanted to send html emails with inline images.
We searched in the codebase and found several workaround, and a note, that Codeigniter directly not supports inline images, the 'inline' parameter on the attachment function is ignored at this time.

So, since Codeigniter can be extended very easily, we implemented the inline attachment handling to the 'Email class'.
We tested some, it worked, so we thought we should give it back to the Codeigniter developers and the community. Smile

Here it is: http://dicentra.hu/Email.php.zip
We did not hurt any functional part of the library, just put a misc function, and some plus code at the inline handling.
The modified code parts are marked with these marks in comment: '<MODIFIED></MODIFIED>'.

Thanks for this really great system guys. Smile Cheers!

P.S.: If we got this wrong, and inline images are already supported by the core libraires, then sorry.