<?php
if(mail("andrew...@optusnet.com.au", "Successful Test", "Successful
mail sent\n")) {
echo "<p> successfully sent mail </p>";
} else {
echo "<p> did not successfully send mail </p>";
}
?>
<html>
<head>
<title> PHP mail Tester Page </title>
</head>
<body> This is a Mail Tester page... </body>
</html>
Any ideas???
cheers, Andrew.
Note that this does _NOT_ mean the mail was successfully sent - only that
it was successfully handed off to whatever mail app is specified. For all
php knows, the mail app then chucks it in the bit bucket straight away :-)
> } else {
> echo "<p> did not successfully send mail </p>";
> }
> ?>
> <html>
> <head>
> <title> PHP mail Tester Page </title>
> </head>
> <body> This is a Mail Tester page... </body>
> </html>
>
> Any ideas???
This very topic was discussed in php.general today and the following was
offered as a solution:
--START QUOTE--
When PHP sends an email to a non existing email address such as
Y...@Domain.com, the warning mail you normally get returned often does not
arrive in your mailbox. Therefore I add two additional headers:
."Reply-To: m...@domain.nl\r\n"
."Return-path: <m...@domain.nl\r\n"
and now I do get the notification mail when mail bounces.
--END QUOTE--
Whilst you are probably not having a problem with incorrect addressing,
getting any error message will be more help than just having your message
disappear into /dev/null
For all the discussion, try the php.general archives and search on 'mail
function' in article titles.
Cheers
--
Quod subigo farinam
$email =~ s/oz$/au/o;