Mail() not setting MIME TYPE

From: Date: Tue, 14 Aug 2001 06:19:45 +0000
Subject: Mail() not setting MIME TYPE
Groups: php.general 
Request: Send a blank email to php-general+get-62576@lists.php.net to get a copy of this message
Hi, can some one please have a look at this and tell me why it's not setting correctly? <? $address .= "blah@blah.com.au"; // Subject $subject = "VFSA-eRentals Application Form"; //Body of email $body = "<html> <title> VFSA-eRentals Application </title> <body> <table> <tr> <td>howdy ho stranger</td> </tr> <tr> <td>how aint ya doing</td> </tr> </table> "; $headers .= "From: VFSA-eRentals <webmaster@vfsa-erentals.com.au>\n"; $headers .= "X-Sender: VFSA-eRentals <webmaster@vfsa-erentals.com.au>\n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "Return-Path: VFSA-eRentals <webmaster@vfsa-erentals.com.au>\n"; // Return path for errors $headers .= "X-Priority: 1\n"; // Urgent message! /* If you want to send html mail, uncomment the following line */ //$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type //send the email $mail = mail("$address", "$subject", "$body", "$headers \nContent-Type: text/html; charset=iso-8859-1\nContent-Transfer-Encoding: 64bit" ); ?> Now that doesn't show all the html I use in the body but it will give you an idea.. as far as I can tell this script should work and set the content-type to text/html but when it sends the email the Content-Type: text/html; charset=iso-8859-1 is changed to Content-Type: text/plain; charset=us-ascii and I get this after it's set the content type X-BadHeader: html; charset=iso-8859-1 but from looking in the PHP manual and php books I have the way I've tried to set it should be right. if you want to look at my page with the script on let me know and I will send it to you off the list. thanks in advance ------------------------------------------------------ Peter Houchin Sun Rentals STR Manager Phone: 03 9329 1455 Fax: 03 9329 6755 peterh@sunrentals.com.au http://www.sun.com.au/rentals ========================================================= _____ __ /\ /_/_/_\ / |_/ \ /_/_/_ __ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/ \_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/ v ________ ________________________________________ /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ ______ __ __ /_/ ____ __ ______ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\ /_/ /_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/ \_\/_/_/_/ /_/ \/_/ /_/ /_/ \_\/_/_/_//_/_/_/ ========================================================= Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 ************* We rent the dot in .COM! **************

« previous php.general (#62576) next »