Jump to content

Notification Email


ikon

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.