[Mail]mb_encode_mimeheader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi !

I need some help for mail's encoding structure.
I use this code for encoding french character like 'é' or 'è':

           mb_language('uni');
           mb_internal_encoding(mb_detect_encoding($this->subject));
$res = mail('yyy@xxxxxxx', mb_encode_mimeheader($this->subject), $this->msgTxt.$this->msgHTML, $this->entete, '-fpostmaster@xxxxxxx');

It is working fine unless if my first word is not containing one of those multi-bites characters!

For example :
Subject : êtes vous francais ou étranger ? => It is well encode and all is fine on differents mail software and webmail Subject : Bonjour, êtes vous francais ? => It is encode at the beginnning of the second word. So it is not well written on some softwre like Incredimail for example.

Does someone know where i am wrong ?
Thanks a lot for your help

Sylvain Gourvil


	

	
		
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux