| |
Last
Updated:
|
PHP Mail Function For Handling UTF8 Characters
By Giorgos Kontopoulos
Expert Author Article Date: 2008-01-15 I have been struggling for some time now to create a php mail function that can handle UTF8 characters across most email readers. I think I have finally accomplished this and it might be useful to others so here it is. The problem with the php mail is that it does not encode the names and subjects and they could get lost in the transport or be misinterpreted from the email readers. This function actually does the proper encoding and overcomes the php mail deficiency. ----------
The emails themselves don't need to be encoded since an email conventionally can only consist of latin characters but, we could also confuse the mail server if we did encode them. It has not been extensively tested, therefore I can't guarantee that it would work with all possible mail readers. So please do send in your bug reports or any other comments. Comments About the Author: Giorgos Kontopoulos is a web consultant from Greece. He is one of the authors of GeoLand.org where he can often be found blogging about issues related to web development and search engine optimization. |
| DevWebProIN is an iEntry, Inc.® publication - 1998-2008 All Rights Reserved Privacy Policy and Legal |