News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
UTF-8 Email in PHP with eZ Components
August 15, 2006 @ 07:50:12

In his latest post on the SitePoint blog today, Harry Fuecks explains and demonstrates how to send UTF-8 encoded emails with the help of the eZ components library of tools.

One of the subjects I brushed over last week was how you handle UTF-8 in email, because I don't have a full picture on the best way to solve this. The fundamental problem is summarized nicely on Wikipedia's discussion of MIME.

Part of the problem there is there are different approaches to how you can solve this. There's plenty of gotchas and clearly more than than you get by default with PHP's mail function (that's after you fixed your code for email injection). In other words taking a "not invented here" view is going to leave you with a big workload.

So, Harry suggests uisng the Mail classes from the eZ components libraries to send (explicitly) UTF-8 encoded emails. He also includes a simple example of how to send it, showing a message in German to be sent correctly.

1 comment voice your opinion now!
utf8 encoding email ez components mail library tutorial utf8 encoding email ez components mail library tutorial


blog comments powered by Disqus

Similar Posts

DevShed: Developing an Extensible Template Processor in PHP 5 (Part 1)

SitePoint PHP Blog: Find and Correct Misspelled Words with Pspell

Elizabeth Smith's Blog: How to Compile PHP5.2 and PHP-GTK2 on Windows using Visual C++ Express

VG Tech: Generating Code Coverage of Behat Tests

Chris Hartjes' Blog: Tutorial: How to create a thread in vBulletin with a script


Community Events











Don't see your event here?
Let us know!


install podcast series component hhvm example symfony2 security opinion facebook package framework code introduction application hack composer language release unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework