Page 1 of 1

Using PHP to send forms

Posted: Thu Feb 17, 2005 11:26 am
by amdorsey
Not sure what kind of problem this could be...

I am using a simple php script to send mail. It sends mail fine to most email accounts. But several of my clients (On an Exchange Server) will not recieve the emails.

Any ideas?

Posted: Thu Feb 17, 2005 11:31 am
by feyd
I'd bet you are missing certain header entries that would allow the servers to deliver the information. What you can do is find several different emails (conversations really, with various mail clients) that do get through, compare the headers from each email to get a list of ones to examine. Try each one, and combinations of them until you figure out what headers are needed.

Posted: Thu Feb 17, 2005 3:28 pm
by Smackie
It might even be sending them to a bulk mail on there because when i send to alot of emails on a php mailing script alot of them go straight to a bulk mail....

Posted: Thu Feb 17, 2005 4:04 pm
by amdorsey
Bulk Mail? What do you mean?

I am sending all normal headers I should be..

$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: ".$email."\n";
$headers .= "To: ".$recipient."\n";
$headers .= "Reply-To: ".$email."\n";
if ($bcc) $headers .= "Bcc: ".$bcc."\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-Mailer: DT Formmail".VERSION."\n";
$headers .= "Content-Type: multipart/mixed;\n\tboundary=\"".$ob."\"\n";

Posted: Thu Feb 17, 2005 4:10 pm
by Smackie
Bulk mail its for like junk mail alot of email places have them on there like if you recieve alot of email and some of its junk mail it goes to Bulk mail.....

Posted: Thu Feb 17, 2005 6:48 pm
by timvw
it shouldn't be hard to find the "valid" headers... they have been mentionned more than once in this forum