Hello
I have a small Problem by using the mail() command from php. To surround
the problem, I do the following:
1. I go to the server and send me a mail using the linux-mail-Command.
In This mail I'll never find the two parameters "Content-Type" and
"Content-Transfer-encoding"
2. I start a smal php-Script, which sends me a mail. The different
variables are defined by:
$strFrom = '"Bestellsystem" <fr************@devsup.de>';
$strReturnhtml = 'http://www.grieser-verlag.com/';
$strEmpfaenger = "fr************@devsup.de";
$strMailtext = "Special German Characters: äöü ÄÖÜ ß\n";
$strMailtext .= "Hewbrew Characters: אבגדהוזחטיךכלםמ\n";
$strMailtext .= "Greek Characters : αβγδεζηθικλμνξο\n";
if(get_magic_quotes_gpc()) {
$strMailtext = stripslashes($strMailtext);
};
$strSubject = 'Test des Mail-Befehls (ohne Content-Type)';
2a. and then I start the mail()-command:
mail($strEmpfaenger, $strSubject, $strMailtext, "From: $strFrom");
In this second Mail I will find the two parameters:
Content-Type: text/plain: charset=UTF-8
Content-Transfer-encoding: BASE64
2b. and then I use the command:
$strSubject = 'Test des Mail-Befehls (mit Content-Type)';
mail($strEmpfaenger, $strSubject, $strMailtext, "From:
$strFrom\r\nContent-Type: text/plain;
charset=utf-8\r\nContent-Transfer-encoding: quoted-printable\r\n");
In this third Mail I will find the FOUR parameters:
Content-Type: text/plain: charset=utf-8
Content-Transfer-encoding: quoted-printable
Content-Type: text/plain: charset=UTF-8
Content-Transfer-encoding: BASE64
I have checked the php.ini file, the Mail.php, PEAR.php, pearcmd.php and
the System.php and I do not have any idea about the reason for those
additional parameters.
Additional php-Information (Version 4.3.9): http://devsup.de/phpInfo.php
Version of Mail.php: // $Id: Mail.php,v 1.6 2003/06/26 07:05:36 jon Exp $
Does someone have any idea to find the flag or the file/module which is
responsible for those parameters to switch them off?
Thank you very much for your interest and for the help.
Best regards
Wolfgang