i'm using mail(); as a notification system for an issue tracker program.
it's working okay, some mail comes through as soon as you trigger it...
however, some doesn't come through for upwards of 12 hours,
which defeats the purpose for 24 hour turn-around.
has anyone ever encountered this sort of thing?
would it be a server thing, is there a way that i can better treat the script?
here is an example, some $vars are being called using $_REQUEST and some are database drawn:
Code: Select all
$mail_body = "
Hello $name,
Your query has been sent to $assignFName.";
$address = $assignEmail.', ';
$address .= $address2;
$subject = "[$issueID] Incident: $title";
$headers = 'From: admin@honeycombworldwide.com' . "\r\n" .
'Reply-To: admin@honeycombworldwide.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($address, $subject, $mail_body, $headers);