Problems with the php-mail()-command ...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfgang Uhr

    Problems with the php-mail()-command ...

    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 " <fromNewsGroups @devsup.de>';
    $strReturnhtml = 'http://www.grieser-verlag.com/';
    $strEmpfaenger = "fromNewsGroups @devsup.de";
    $strMailtext = "Special German Characters: äöü ÄÖÜ ß\n";
    $strMailtext .= "Hewbrew Characters: ××‘×’×“×”×•×–× —טיךכלםמ \n";
    $strMailtext .= "Greek Characters : αβγδεζηΠ¸Î¹ÎºÎ»Î¼Î½Î¾Î¿ \n";
    if(get_magic_qu otes_gpc()) {
    $strMailtext = stripslashes($s trMailtext);
    };
    $strSubject = 'Test des Mail-Befehls (ohne Content-Type)';

    2a. and then I start the mail()-command:
    mail($strEmpfae nger, $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($strEmpfae nger, $strSubject, $strMailtext, "From:
    $strFrom\r\nCon tent-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
Working...