Re: Form to email with Special Characters

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

 



Here it is:

 $headers = "From: $name <$email>\r\n";
 $headers .= "Reply-to: $email\r\n";
 $headers .= "Return-Path: $email\r\n";
 $headers .= "MIME-Version: 1.0\r\n";
 $headers .= "Content-Type: multipart/alternative; charset=\"iso-8859-1\"; 
boundary=\"$mime_boundary\";\r\n\r\n";
 $headers .= "This is a multi-part message in MIME format.\r\n\r\n";
 $msg .= "--$mime_boundary\r\n";
 $msg .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n"; // deleted 
boundary
 $msg .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
 $msg .= $text_version."\r\n\r\n";
 $msg .= "--$mime_boundary\r\n";
 $msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
 $msg .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
 $msg .= $message."\r\n\r\n";
 $msg .= "--$mime_boundary--\r\n\r\n\r\n";
 mail($recipient, $subject, $msg, $headers);

Thanks for the help!


"Bogomil Shopov" <bogomil@xxxxxxxxxxxx> wrote in message 
news:20050106120201.20975.qmail@xxxxxxxxxxxxxxx
> Hello Can you show me the script?
> Please look first at mail functions on php.net/mail to see how to use
> headers (and encodings too)
>
> Best Regards
> Bogomil Shopov
> http://purplerain.org
>
> Hugo Tavares wrote:
>> Hello:
>>
>> I'm new (very new) to php.
>>
>> I'm making a simple srcipt wich sends and email from a form.
>>
>> My problem is tha special characters like ç,á,à,é, etc don't work.
>>
>> Can anyone help me?
>>
>> Thanks 

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