Hello,
I have a problem that seems simple enough, but I can't get it to work.
I am trying use an if() to make sure that an email is sent and to handle the error
gracefully if it is not.
Simplified code:
if(mail($to,$subject,$message)) {
print "msg to $to was successful";
}
else {
print "msg to $to failed";
}
this doesnt word correctly, all the emails trigger the successfull message, even when I use bogus addresses. mail() is supposed to return a boolean, so why doesnt this work right?
Scott