[Phpwm] unicode email with Zend_Mail - what about the subject?
David Goodwin
david at codepoets.co.uk
Wed Sep 10 12:54:31 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Annoyingly (or not, perhaps) a new day, and a slightly more functioning
brain shows the following working fine :
require_once('Zend/Mail.php');
$mail = new Zend_Mail('UTF-8');
$mail->setbodytext("hello world - here is some unicode ££€€ stuff");
$mail->setSubject("See £ $ €");
$mail->setFrom('david at palepurple.co.uk', 'rah rah');
$mail->addTo('david at codepoets.co.uk', 'rah rah');
$mail->send();
So, now I'm wondering why it didn't work yesterday. Clearly the unicode
troll moved on to hassle a different computer user overnight.
So, to summarise, Zend_Mail supports unicode properly; Sam[1] was being
stupid somewhere.
David.
[1] - cos it wasn't me...
- --
David Goodwin
[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIx8N8/ISo3RF5V6YRAptWAJ9LJesz4bf0wGQwBsXuXWardaalqgCeOiv4
xC0aupKJ8EpSyxIAAPnfMes=
=qMkC
-----END PGP SIGNATURE-----
More information about the Phpwm
mailing list