ikon Posted March 8, 2008 Share Posted March 8, 2008 Hi All, I'm running an SMTP server on my localhost machine and trying to send an autogenerated email..... The Page is Hanging however it IS connecting to the server because it has email address being sent from in the active connection. What it seems is that its in an endless loop any ideas guys? Here is my code to gen my script...... if ($shopConfig['sendOrderEmail'] == 'y') { $subject = "[New Order] " . $_SESSION['orderId']; $email = $shopConfig['email']; $message = "You have a new order. Check the order detail here \n http://" . $_SERVER['HTTP_HOST'] . WEB_ROOT . 'admin/order/index.php?view=detail&oid=' . $_SESSION['orderId'] ; $from = "matty_j4y@hotmail.com"; $headers = "From: $from"; mail($email, $subject, $message, $headers); } Any ideas? the php.ini file looks like this: [mail function] ; For Win32 only. SMTP = 192.168.1.72 smtp_port = 25 ; For Win32 only. ;sendmail_from = matty_j4y@hotmail.com Replies greatly appreciated Quote Link to comment Share on other sites More sharing options...
ikon Posted March 8, 2008 Author Share Posted March 8, 2008 port 25 is also open on my router Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.