Thanks, Hans. Here are the headers:

Return-path: <[EMAIL PROTECTED]>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Mon, 14 Jan 2008 19:49:12 -0600
Received: from nobody by hosting.company.com with local (Exim 4.68)
    (envelope-from <[EMAIL PROTECTED]>)
    id 1JEavQ-0007T3-9u; Mon, 14 Jan 2008 19:49:12 -0600
To: [EMAIL PROTECTED]
Subject: Newsletter Request
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
Date: Mon, 14 Jan 2008 19:49:12 -0600



// build additional headers
$additionalHeaders = "From: [EMAIL PROTECTED]";
$additionalHeaders .= "To: [EMAIL PROTECTED]";
$additionalHeaders .= "Cc: [EMAIL PROTECTED]";
$additionalHeaders .= "Return-Path: -f [EMAIL PROTECTED]";
$additionalHeaders .= "Reply-To: [EMAIL PROTECTED]";


Well, as I suspected you definitely have some problems in your header and the address the mail is coming from doesn't exist in the real world. The first thing to correct is the line: $additionalHeaders .= "Return-Path: -f [EMAIL PROTECTED]"; It is non-sense drop it all together.

Then make your mail() call something like this: $mailSent = mail($to, $subject, $message, $additionalHeaders, "-f [EMAIL PROTECTED]"). It is a little late any my eyes are dry, but that should go a long way to fixing you up. However, this will only work if your host allows you to override with the -f flag. Make the changes and send us the new headers.

In any event, you mail is not being routed by Google and the like because your Return-Path is not being set to an address that exists in the real world.
Hans
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to