Jump to content

Not Getting A Few Emails With Php Email Function


kalster

Recommended Posts

i am using localhost to get emails from php. for some strange reason the odd email does not go through. i would said i get about 90% of emails from localhost. here is my code for the php email function. why is some emails not going through? i am using current xampp and current php. in the code below, when the email does not go through, i am not getting the php die message. for the email sending program, i am using mercury/32

 

$to = "root@localhost";
$subject = "test";
$message = "<html><body>test</body></html>";
$from = "localhost";

$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
mail($to,$subject,$message,$headers) or die("error: mail not sent");

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.