a different type of mail problem
| From: | Wizaerd) | Date: | Wed, 18 Apr 2001 18:00:06 +0000 |
| Subject: | a different type of mail problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49241@lists.php.net to get a copy of this message | ||
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:webmaster@thecanvasexpert.com\n"; $additionalHeaders .= "Reply-To:webmaster@thecanvasexpert.com\n"; $additionalHeaders .= "Sender:webmaster@thecanvasexpert.com\n"; mail( $to, $subject, $body, "From: webmaster@thecanvasexpert.com\n" . $additionalHeaders ); } This way I get consistent headers... However, when I actually get the emails here are the headers I get: Envelope-to: justformailinglists@wizaerd.com 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 justformailinglists@wizaerd.com; Wed, 18 Apr 2001 12:49:29 -0400
To: justformailinglists@wizaerd.com
Subject: [TCE] - Confirmation Required
From: webmaster@thecanvasexpert.com
MIME-Version: 1.0
Content-type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Reply-To: webmaster@thecanvasexpert.com
Message-Id: <E14pv8z-0004VT-00@artemis.jtlnet.com>
Sender: Nobody <nobody@artemis.jtlnet.com>
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?