note 77379 added to function.mail
| From: | j dot crt at free dot fr | Date: | Mon, 27 Aug 2007 10:20:05 +0000 |
| Subject: | note 77379 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129831@lists.php.net to get a copy of this message | ||
Hi
I have a problem :
I try to use mail function in french form and I need to receive space caracter in the mail ; so I
gave the name to the fields as " :
<select name="SANTE Déboucheur
canalisation: ">
<option value="" selected="selected"></option> ...
But the mail received is :
SANTEÃ Lessives:Ã Ã Ã
The space is replaced by an "Ã"
This is the code to send the mail :
<?php
$email1 = "one@one.fr";
$email2 = "two@two.fr";
$to = $email1 .',';
$to .= $email2 ;
$from = "Test";
$subject = "Forms";
while (list($key, $val) = each($_POST)) {
$message.="$key$val\n";
}
$headers = 'From: '.$from;
@mail($to, $subject, $message, $headers);
$page= "http://www.mydomain.fr/thanks.php";
Header("Location: ".$page);
?>
And I have the same result if I insert :
"...
$headers .= '' . $boundary . "\n";
$headers .= 'MIME-Version: 1.0' ."\n";
$headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n";
..."
in the code
Could any one help me ?
Thanks so much
Joel
----
Server IP: 217.174.196.197
Probable Submitter: 82.234.60.249
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/77379
Del: integrated -- https://master.php.net/note/delete/77379/integrated
Del: useless -- https://master.php.net/note/delete/77379/useless
Del: bad code -- https://master.php.net/note/delete/77379/bad+code
Del: spam -- https://master.php.net/note/delete/77379/spam
Del: non-english -- https://master.php.net/note/delete/77379/non-english
Del: in docs -- https://master.php.net/note/delete/77379/in+docs
Del: other reasons-- https://master.php.net/note/delete/77379
Reject -- https://master.php.net/note/reject/77379
Search -- https://master.php.net/manage/user-notes.php