CodeIgniter Forums
Who was able to use the internal e-mail library? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Who was able to use the internal e-mail library? (/showthread.php?tid=61412)



Who was able to use the internal e-mail library? - bbalet - 04-14-2015

Hi,

For one my projects, I parse a view and send it via e-mail (HTML body). It works fine with English.
With French, the subject of the e-mail is correctly escaped. But for the e-mail body, I have to replace accents by HTML entities (é -> é ). It can be OK as the view is still readable and editable.
For non-European languages, this trick doesn't work anymore as I cannot edit the view and replace every glyph by its HTML hexadecimal representation. I mean that the view would not be human readable anymore.

I ended up by using PHPMailer which works fine.

However, I was wondering if anyone was able to use the internal e-mail library with languages having non-latin characters (chinese, russian, arabic, japanese, etc.)? Do you have a code sample to share? An example using a parsed view as the e-mail content would be great.

Thank you in advance