You are here: Re: Form to email with Special Characters « PHP « IT news, forums, messages
Re: Form to email with Special Characters

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\";
$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
$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" <> wrote in message
> Hello Can you show me the script?
> Please look first at mail functions on to see how to use
> headers (and encodings too)
> Best Regards
> Bogomil Shopov
> 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



[Reply to this message]

Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация