Re: Mail () problem with some letters
| From: | Mario Soto | Date: | Mon, 28 Apr 2003 17:26:53 +0000 |
| Subject: | Re: Mail () problem with some letters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145570@lists.php.net to get a copy of this message | ||
This function exists on the history of this list. You should check it. I haven't tried before,
but it should work.
function encodemymail($txt) {
for ($i = 0; $i < strlen($txt); $i++) {
$ent .= "&#" . ord(substr($txt, $i, 1)) . ";";
}
return($ent);
}
echo encodemymail('ä ü ö [ ]');
Read (I'm getting used to send this address): ftp://ftp.isi.edu/in-notes/rfc2045.txt
Read this too: ftp://ftp.isi.edu/in-notes/rfc1345.txt
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
----- Original Message -----
From: "websteve" <websteve@web.de>
To: <php-general@lists.php.net>
Sent: Sunday, April 27, 2003 6:50 PM
Subject: [PHP] Mail () problem with some letters
Hi!
I have a small problem with my forms.
I send it through the mail function
$text = $firstname." ".$lastname." ."Firstname
".$firstname."\nLastname:
".$lastname."\...... and so on;
mail("mail@mailadress.com","Contactform by $firstname $lastname",$text);
When the user has sent the form everything works well and I receive all
my informations.
But only letters like 'ö' or 'ü' or 'ä' and some more were not
displayed correctly.
Ie. Instead of 'ö' my mailprogram shows me ö
What do I have to do to send the form correctly.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php