Re: Mime Problem with mail funtion

From: Date: Mon, 28 Apr 2003 17:02:40 +0000
Subject: Re: Mime Problem with mail funtion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145569@lists.php.net to get a copy of this message
Try: ------------------------------------------------------------------------ mail("mail@domain.com","new contact by $firstname $lastname" ,$text, "Mime-Version:1.0\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit"); ------------------------------------------------------------------------ This might not work properly with all the SMTP servers. Some servers don't allow to use the 8-bit extensions for the server. You should try this instead to have a more standarized message: ------------------------------------------------------------------------ $text=imap_8bit($text); //Converts a 8-bit string into a quoted printable string. mail("mail@domain.com","new contact by $firstname $lastname" ,$text, "Mime-Version:1.0\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: quoted-printable"); ------------------------------------------------------------------------ If none works, change all the '\n' into '\r\n'. Greetings. 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 9:26 PM Subject: [PHP] Mime Problem with mail funtion Hi! I have the problem that i have some german letters like 'ä' or 'ü' - i found the right mime type to convert it to usual text/plain format but it won't work - what's wrong? mail("mail@domain.com","new contact by $firstname $lastname" ,$text, "Mime-Version:1.0\nContent-Type: text/plain; charset=\"iso-8859-1\nContent-Transfer-Encoding: 8bit\""); I appreciate your help thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#145569) next »