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 = "[email protected]"; $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 = [email protected] Replies greatly appreciated Link to comment https://forums.phpfreaks.com/topic/95062-notification-email/ 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 Link to comment https://forums.phpfreaks.com/topic/95062-notification-email/#findComment-486926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.