View Single Post
Old 10-23-2008, 01:36 PM   #1 (permalink)
chrisb
The Wanderer
 
Join Date: Oct 2008
Location: Florida
Posts: 5
Thanks: 1
chrisb is on a distinguished road
Default Checking Error on Mail()

Shouldn't the code below return as Failed because !!!! is not a valid email address?

I may be wrong, but I could've sworn it used to function that way. Now my server is coming back with Success even though that is obviously not going to send.

PHP Code:
if (mail('!!!','Test Message','This is my message.','FROM: Name<email@email.com>')) {
 echo 
"Success";
} else {
 echo 
"Failure";

chrisb is offline  
Reply With Quote