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" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> 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

Reply via email to