RE: Re: Sending UTF-8 mail with mail()

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

 



That worked "better". Now I at least am getting something that looks like
the same it looks in MySQL database table. However, in the email client
(outlook, gmail, hotmail) it is being showed like this:

Document name: ´¡¿Ë
Document summary: ´¡Ë¿

/Peter



-----Original Message-----
From: Barry [mailto:barry@xxxxxxxxxxxxxx] 
Sent: Tuesday, June 13, 2006 9:34 PM
To: php-general@xxxxxxxxxxxxx
Subject:  Re: Sending UTF-8 mail with mail()

Peter Lauri schrieb:
> How can I send UTF-8 mails with the mail() function. Right now I am doing:
> 
> mail('theemail@xxxxxxxxxx', 'Subject', 'Message', 
> "From: The Sender <sender@xxxxxxxxxx> \n" . 
> "Content-Type: text/plain; charset=utf-8 \n" .
> "Content-Transfer-Encoding: 7bit\n\n")
> 
> The message is being sent, but the UTF-8 specific characters are not being
> presented. Is there any fix on this?
> 
> The messages etc are coming from a form. Is it possible to set the charset
> for the form?
> 
> /Peter
$bodytext = utf8_encode($bodytext);
-- 
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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

-- 
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