I am using the following function to send out emails via PHP:

function SendEMail( $to, $subject, $body ) {
        $additionalHeaders = "MIME-Version: 1.0\n";
                $additionalHeaders .= "Content-type: text/html; 
charset=\"iso-8859-1\"\n";
        $additionalHeaders .= "Content-Transfer-Encoding: 7bit\n";
        $additionalHeaders .= "Return-path:[EMAIL PROTECTED]\n";
        $additionalHeaders .= "Reply-To:[EMAIL PROTECTED]\n";
        $additionalHeaders .= "Sender:[EMAIL PROTECTED]\n";

        mail( $to, $subject, $body, "From: [EMAIL PROTECTED]\n" . 
$additionalHeaders );
}

This way I get consistent headers...

However, when I actually get the emails here are the headers I get:

Envelope-to: [EMAIL PROTECTED]
Delivery-date: Wed, 18 Apr 2001 12:49:29 -0400
Received: from nobody by artemis.jtlnet.com with local (Exim 3.20 #1)
          id 14pv8z-0004VT-00
          for [EMAIL PROTECTED]; Wed, 18 Apr 2001 12:49:29 -0400
To: [EMAIL PROTECTED]
Subject: [TCE] - Confirmation Required
From: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Reply-To: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
Sender: Nobody <[EMAIL PROTECTED]>
Date: Wed, 18 Apr 2001 12:49:29 -0400

Notice the Sender element does not reflect what I've sent, showing Nobody 
instead.  My hosting provider states it's because their upstream demanded 
them to set it up this way to prevent spam emails...

Is this accurate?  If not, what can I tell my ISP to change how emails are 
sent out?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to