Not to get off the topic of debugging your particular problem, but I've always used SwiftMailer (http://www.swiftmailer.org/), which is all OO and has many tips on correct usage.
- jake On Jan 14, 2008 11:15 PM, B.A.S. <[EMAIL PROTECTED]> wrote: > Hans Kaspersetz wrote: > >> // 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. > > Done. > > > 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. > > Done. All emails bounced with the following msg: > > A message that you sent could not be delivered to one or more of its > recipients. This is a permanent error. The following address(es) failed: > > [EMAIL PROTECTED] > Mail sent by user nobody being discarded due to sender restrictions > in WHM->Tweak Settings > [EMAIL PROTECTED] > Mail sent by user nobody being discarded due to sender restrictions > in WHM->Tweak Settings > [EMAIL PROTECTED] > Mail sent by user nobody being discarded due to sender restrictions > in WHM->Tweak Settings > > New headers from bounce msg: > > Return-path: <> > Envelope-to: [EMAIL PROTECTED] > Delivery-date: Mon, 14 Jan 2008 21:54:45 -0600 > Received: from mailnull by mercury.hostspectrum.com with local (Exim 4.68) > id 1JEcsv-0000He-LN > for [EMAIL PROTECTED]; Mon, 14 Jan 2008 21:54:45 -0600 > X-Failed-Recipients: [EMAIL PROTECTED], > [EMAIL PROTECTED], > [EMAIL PROTECTED] > Auto-Submitted: auto-replied > From: Mail Delivery System <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Mail delivery failed: returning message to sender > Message-Id: <[EMAIL PROTECTED]> > Date: Mon, 14 Jan 2008 21:54:45 -0600 > > > 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. > > Duly noted; thanks. > > Regards, > Bev > > > > > _______________________________________________ > 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 > _______________________________________________ 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