|
|
 |
FN-FORUM: FW: [WAUK] Odd PHP mail behaviour (well none actually)
date posted 25th May 2008 17:11
Hi,
I have a PHP mail wrapper that formats an email and sends it out using the
standard PHP mail function. The script has worked fine for 2 years but has
now decided not to send mail.
I ran some tests and put together the most basic send mail function using
mail. According to the script, everything is fine, but the email never
appears in my inbox. Here's the script (email address changed):
$to = [EMAIL REMOVED]
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [EMAIL REMOVED] . "\r\n" .
'Reply-To: [EMAIL REMOVED] . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo "$to$subject$message$headers" ;
echo "??" . function_exists( "mail" ) . "??" ;
The function exists (I get a "true" result) and the data looks fine.
Has anyone any ideas why PHP mail might stop sending emails out?
Many thanks
Edward
|
 |
|