Mail Headers problem.......
| From: | CDitty | Date: | Fri, 24 May 2002 03:19:51 +0000 |
| Subject: | Mail Headers problem....... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99034@lists.php.net to get a copy of this message | ||
I am writing a small email logging / forwarding script and am having problems with the headers. I am successfully getting the MIME-Version and Content-type, but when I insert them into the forwarded email message, the headers show within the email itself. Below is the code I am using.
$to = "$user_email[0]";
$subj = "$Subject";
$msg = "$Message";
$headers = "From: $From[1]\n";
$headers .= "$Mime_Version\n";
$headers .= "$Content_Type\n";
mail($to, $subj, $msg, $headers);
This is what the email looks like.
Return-Path: <mail>
Received: (from mail@localhost)
by redhotsweeps.com (8.9.3/8.9.3) id VAA27003;
Thu, 23 May 2002 21:23:51 -0500
Date: Thu, 23 May 2002 21:23:51 -0500
Message-Id: <200205240223.VAA27003@redhotsweeps.com>
To: XXXXXXX@redhotsweeps.com
Subject: test
From: XXXXXXX@redhotsweeps.com
Status:
Content-type: text/plain; charset="us-ascii"; format=flowed
test 1234
Can anyone give me any tips?
Thanks
CDitty