Using PHP to send forms

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amdorsey
Forum Newbie
Posts: 19
Joined: Mon Dec 06, 2004 2:46 pm

Using PHP to send forms

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post 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....
amdorsey
Forum Newbie
Posts: 19
Joined: Mon Dec 06, 2004 2:46 pm

Post 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";
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post 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.....
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

it shouldn't be hard to find the "valid" headers... they have been mentionned more than once in this forum
Post Reply