I have a website with a simple "contact us" form. I cant get it to work on my windows box. I think the code has been written for something other than smtp/pop, but I'm not familar enough with php to know thats true. Its my own server and I have three other sites that use php in a send mail function and they work just fine, so I know the server is setup properly. If it makes any difference I'm running IIS 6 on a windows 2003 machine with php5.
Thanks in advance
<?php$TO = "info@mysite.net";$MP = "/usr/sbin/sendmail -t -i";$continue = "services.html";$info = $HTTP_POST_VARS['info'];$name = $HTTP_POST_VARS['name'];$address = $HTTP_POST_VARS['address'];$phone = $HTTP_POST_VARS['phone'];$email = $HTTP_POST_VARS['email'];$description = $HTTP_POST_VARS['description'];$spec_envelope = 1; if($spec_envelope) {$MP .= " -f $email";}$fd = popen($MP,"w"); fputs($fd, "To: $TO\n"); fputs($fd, "From: $name <$email>\n");fputs($fd, "Subject: $info\n");fputs($fd, "X-Mailer: PHP\n");fputs($fd, "Name: $name\n"); fputs($fd, "Address: $address\n"); fputs($fd, "Phone: $phone\n"); fputs($fd, "e-Mail: $email\n"); fputs($fd, "Description: $description\n");pclose($fd); ?>