Reply to Mail() - arriving at some addresses, never at others

Your name:

Reply:


Posted by jerrygarciuh on 10/09/86 11:50

Hi folks,

HELP!!!!

My habitual use of mail() is causing me some grief. I am having
slightly different results depending on the server I use but the gist
is that mail() is returning 1, and I can send mail to yahoo.com,
gmail.com, and hotmail.com no problem. 100% success.

Same script from some servers gets mail through to cox.net addresses,
my ISP.

However, my own domain, nolaflash.com is not receiving these mails at
all, nor are several other domains on shared hosting servers.
NolaFlash.com and Artifexdev.com for two examples.

I have tried running the scripts on three different servers with the
only difference that the Cox address works on one AND if I host the
script on NolaFlash then the mail to NolaFlash addresses gets through.

Here are four ways I have tried this:

// NO HEADERS
$to = 'someone@gmail.com';
$subject = "Inquiry from some.com";
$msg = 'whatever';
$result = mail($to, $subject, $msg);

// FULL HEADERS
$to = 'someone@gmail.com';
$subject = "Inquiry from ENLA.com: $_POST[name] $_POST[company]";
$headers = "From: $_POST[name] <$_POST[email]>\r\n";
$headers .= "Reply-to: $_POST[name] <$_POST[email]>\r\n";
$headers .= "Return-Path: $_POST[name] <$_POST[email]>\r\n";
$headers .= "Message-ID: <" . date("YdmHis") .
".TheSystem@".$_SERVER['SERVER_NAME'].">" . "\r\n";
$headers .= "X-Mailer: PHP v". phpversion() . "\r\n";
$result = mail($to, $subject, $msg, $headers);

// FULL HEADERS PLUS -f FLAG to set the envelope sender address
$to = 'someone@gmail.com';
$subject = "Inquiry from ENLA.com: $_POST[name] $_POST[company]";
$headers = "From: $_POST[name] <$_POST[email]>\r\n";
$headers .= "Reply-to: $_POST[name] <$_POST[email]>\r\n";
$headers .= "Return-Path: $_POST[name] <$_POST[email]>\r\n";
$headers .= "Message-ID: <" . date("YdmHis") .
".TheSystem@".$_SERVER['SERVER_NAME'].">" . "\r\n";
$headers .= "X-Mailer: PHP v". phpversion() . "\r\n";
$result = mail($to, $subject, $msg, $headers,
'-fwebmaster@mysite.com');


I have also played around with setting all the headers to good
addresses at my site to see any bounces from the SMTP server.

Any advice greatly appreciated!!!

jg

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация