Re: PROBLEM WITH MAIL FUNCTION
| From: | Ligaya Turmelle | Date: | Sun, 09 Jul 2006 23:55:42 +0000 |
| Subject: | Re: PROBLEM WITH MAIL FUNCTION | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239224@lists.php.net to get a copy of this message | ||
Juanjo Pascual wrote:
Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail(zzz@zzzz.com, 'Consulta Señalítica desde la página web', '<strong>Hola, esto es una prueba<strong>','From: zzz@zzzz.com' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n"); The mail subject when I receive the message is like this: Consulta SeXalXtica desde la pXgina web ¿How can I solve this problem? IIRC sending non-ascii chars in a header is outside the standard without some "encoding". This may help you - http://www.faqs.org/rfcs/rfc1522.html-- life is a game... so have fun.