I have already set the PHP.INI file so that SMTP is using my ISP server and sendmail_from is set with a valid email address. I have also telneted to the SMTP server from the WIN2K box to check that it is working.
The problem I have is that PHP hangs and I have to close all browser windows using it before i can get back in.
Here is the simple script I am trying to get to work.
Code: Select all
$myname = "Touch Support";
$myemail = "lloyd@touch.com";
$contactname = "Lloyd T";
$contactemail = "lloydie-t@plus.com";
$message = "hello from me";
$subject = "test from lloyd";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: ".$contactname." <".$contactemail.">\r\n";
$headers .= "Reply-To: ".$myname." <$myreplyemail>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
mail($contactemail, $subject, $message, $headers);-------------------------------------------------
WIN2K
PHP 4.3.1
Apache 1.27
MySQL 4.0.4