PDA

View Full Version : Email Headers that Shouldn't be There


Phantom
05-11-2003, 03:32 PM
Hi,

When I get an email that a PHP script sends, it comes attached with a few headers that I don't like :p. I think that it's a server-side issue, and they have it set like that to get rid of spam...please, any help would be appreciated in figuring out the cause of these headers (see below)

MIME-Version: 1.0 X-Sender: <support@sendfrom.com> X-Mailer: Microsoft Outlook Express 5.50.4922.1500 X-Priority: 3 Message-Id: <E19Es3W-0003vF-00@server1.sendfrom.com>
Date: Sun, 11 May 2003 09:44:02 -0500
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server1.sendfrom.com
X-AntiAbuse: Original Domain - sendto.com
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [99 99]
X-AntiAbuse: Sender Address Domain - server1.sendfrom.com

I don't think these headers look very professional coming from a web host's help desk ;)

scroots
05-11-2003, 05:12 PM
do you have the source of the php script?

if you do post it.

scroots

Phantom
05-11-2003, 05:29 PM
Well, this is the part that sends the email:

createMessage('r');
$message = $out;
$db = new dbStuff;
$db->dbM("INSERT INTO ${table} SET name = '$uname', email = '$uemail', domain = '$udomain', issue = '$uissue', timestamp = ".time().", status = '3'"); // Status? Well, status=0 means closed, 1 means open, 2 means pending
$db->dbQ("SELECT * FROM ${table} WHERE name = '$uname' && timestamp=".time());
$client = $db->dbR();
$mail = new mailStuff;
$mailheaders = "From: $display<$email>\r\n";
$mailheaders .= "MIME-Version: 1.0\r\n";
$mailheaders .= "X-Sender: <$email>\r\n";
$mailheaders .= "X-Mailer: Microsoft Outlook Express 5.50.4922.1500\r\n"; //mailer
$mailheaders .= "X-Priority: 3\r\n"; //1 UrgentMessage, 3 Normal
$mailheaders .= "Return-Path: <$email>\r\n";
$mailheaders .= "Bcc: $email\r\n";
$subject = "Ticket: ID-$client[id]";
mail($client['email'],$subject,$message,$mailheaders,"-f$email") or die("Could not send client email");
echo "<script>alert('All of the information entered was correct, and an email has been sent to $uemail. One of our Tech Support Specialists will view your issue and get back to you shortly. Have a nice day!');</script>";

scroots
05-11-2003, 05:37 PM
it looks like they are being added by the server.

scroots

Phantom
05-11-2003, 05:52 PM
Yeah, that's what I thought...cept, if the server were to shut them off, people could spam without them knowing...

Spookster
05-11-2003, 07:47 PM
The mail server adds those headers. My host started doing that before and it looked just as ugly as that one. Eventually enough clients complained and they stopped adding the headers in the message itself.