Re: Form to email with Special Characters

From: Date: Thu, 06 Jan 2005 12:30:32 +0000
Subject: Re: Form to email with Special Characters
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-205725@lists.php.net to get a copy of this message
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

« previous php.general (#205725) next »