|
Posted by Hugo Tavares on 01/06/05 14:30
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@spisanie.com> wrote in message
news:20050106120201.20975.qmail@pb1.pair.com...
> 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
Navigation:
[Reply to this message]
|