-
The following code won't send me an email...anyone know why?
Code:
$header = "From: $email\nReply-To: $email\nX-Mailer: Purchasing System by Richard Brevig\n";
$header .= "Content-Type: text/html; charset=\"iso-8859-1\"";
$subject = "New Purchase In Que";
$body = "There is a new order in place to be processed. There may be more by now, however, you will not receive another email notification until you log back into the Admin section.";
mail($email,$subject,$body,$header);
$email is defined.
Thanks.
Richard
-
You are trying to send an HTML e-mail?
-
It doesn't matter to me...I only put it there that way if I ever did, I wouldn't have to go searching for how to. :)
I've tried removing it, and a bunch of other stuff, but it just won't actually send me an email. :(
Richard
-
Is this your own server if so is the path to sendmail set up properly in the php.ini file? try doing phpinfo(); and look for the sendmail setting. Also just for testing take the headers out and just send like
$subject = "New Purchase In Que";
$body = "There is a new order in place to be processed. There may be more by now, however, you will not receive another email notification until you log back into the Admin section.";
mail($email,$subject,$body);
-
Thank you for your help. I think, as you probably do, that the error is on the servers side. I contacted them a day ago, but have had no response. I will give the host a few more days...hopefully we can get it fixed.
Richard