mb_send_mail displays boundary marker

From: Date: Tue, 26 Aug 2003 02:08:48 +0000
Subject: mb_send_mail displays boundary marker
Groups: php.general 
Request: Send a blank email to php-general+get-160712@lists.php.net to get a copy of this message
I've written an email class that works fine when I use mail() But now I have added support for mb_send_mail() and the boundary marker is being displayed in the body of the email. Putting it back to mail() works fine... I'm doing all the header info myself (ie, mb_send_mail('', '', $body, $headers)) This is the contents of $headers ----- START ----- X-Mailer: SEE-IT's PHP email_class (c)2001 Mime-Version: 1.0 Subject: Saturday Lotto - 2003-08-02 - $19m Sensitivity: normal Importance: normal X-Message-Flag: Reply-By: Expiry-Date: To: Martin Towell <martin.towell@exchange.world.net> From: Martin Towell <martin.towell@exchange.world.net> Reply-To: martin.towell@exchange.world.net Error-To: martin.towell@exchange.world.net Cc: Bcc: Content-Type: multipart/mixed; boundary="f269fe8a8c57c93d707399ffb68beeb6" ----- END ----- And this is the $body ----- START ----- --f269fe8a8c57c93d707399ffb68beeb6 Content-Type: text/html <html> <body> Test HTML text </body> </html> --f269fe8a8c57c93d707399ffb68beeb6-- ----- END ----- I thought I may have to use mb_encode_mimeheader() but that didn't seem to work either :( Anyone have any suggestions on where I may/am going wrong? TIA Martin

« previous php.general (#160712) next »