|
Posted by Geoff Muldoon on 03/27/07 00:32
abersparky@gmail.com says...
> Can someone help me with the mail() function???
> My code is as follows:
>
> mail ('abersparky@gmail.com', 'New Comment Submitted for Approval',
> 'Approval informational');
Try:
$to = 'abersparky@gmail.com';
$subject = 'New Comment Submitted for Approval';
$message = 'Approval informational';
$headers = '';
$params = '';
if(mail($to, $subject, $message, $headers, $params)) {
echo 'No problem in mail function';
} else {
echo 'Oops, mail function problem';
}
If it is not a mail function problem it may be that gmail is filtering it
out as possible spam. Try:
$params = '-f<insert a known real sender email address here>';
See:
http://au.php.net/manual/en/function.mail.php
and search for specific gmail issues.
GM
[Back to original message]
|