PDA

View Full Version : Email delivery issue - please help



_nabil_
05-31-2009, 09:24 AM
Hello

I have a problem on all the forms that use the php mail() function

Emails from my website ==to==> a client or to the admin email are lost (not delayed)


All the forms used to work at least 18 months ago and this problem started a few days ago and stopped and started again without me doing any changes to the scripts or to my HM cpanel.

here is an example of how is use the mail() function:



$to = $email;// dynamic value
$subject = "abc";
$message="xyz";
$headers=
"From: <$GLOBALS[site_email]>\r\n".
'Content-Type: text/plain; charset="utf-8"; Content-Transfer-encoding: 8bit';
@mail($to, $subject, $message,$headers,"-f$site_email");
Any help would be appreciated... Thanks in advance

Regards,
Nabil