bugs with php mail()
Posted: Tue Jan 26, 2010 4:14 pm
Hi,
Can anyone tell what I have done wrong with mail(); it won't send any mails at all...
I have spent my entire evening but still cannot find out what is wrong with it.
Many thanks,
Lau
Can anyone tell what I have done wrong with mail(); it won't send any mails at all...
Code: Select all
if(!empty($mai_content))
{
$to_email = 'me1@yahoo.co.uk';
$from_name = 'sender';
$from_email = 'sender@yahoo.co.uk';
$subject = "You have a comment!";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=utf-8\r\n";
$headers .= "From: $from_name <$from_email>\r\n";
$headers .= "Cc: me2@yahoo.co.uk\r\n";
$headers .= 'Bcc: me3@lauthiamkok.net, me4@lauthiamkok.net';
$content = stripslashes($row_mailing_tmp['mai_content']);
$sentmail = mail($to_email,$subject,$content,$headers);
}Many thanks,
Lau