[PHP] simple mail() question

2004-11-13 Thread Adam Fleming
Hello All,
I have a simple mail() question, and I hope a hero can shed some
light.  I can't understand why my messages are being encoded, and extra
headers are being added, *before* the message is sent through sendmail.
Infinite Thanks,
Adam
Input:
$more test.php
?
 $header = Content-Type: text/plain; charset=us-ascii;
 mail('[EMAIL PROTECTED]', 'subject', 'body', $header);
?

Expected Result:
$php -d sendmail_path=/bin/cat test.php
To: [EMAIL PROTECTED]
Subject: subject
Content-Type: text/plain; charset=us-ascii
body

Actual Result:
$php -d sendmail_path=/bin/cat test.php
To: [EMAIL PROTECTED]
Subject: subject
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: BASE64
Ym9keQ==
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] RE: [SOLVED][PHP] Re: simple mail() question

2004-11-13 Thread Adam Fleming
Hi Manuel,
That was *exactly* the issue.  I can't express my gratitude for the 
assistance enough

-Adam
Original Message Follows
From: Manuel Lemos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: simple mail() question
Date: Sat, 13 Nov 2004 19:21:18 -0200
Hello,
On 11/13/2004 04:28 PM, Adam Fleming wrote:
Hello All,
I have a simple mail() question, and I hope a hero can shed some
light.  I can't understand why my messages are being encoded, and extra
headers are being added, *before* the message is sent through sendmail.
It seems that you have mbstring.func_overload set to an odd number making 
mail be overloaded by mb_send_mail.

Actually the way those messages go they will be blocked by most modern spam 
filters. So, I would say mb_send_mail is buggy, meaning do not use it.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php