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 = "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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.