Jump to content

Checking Error on Mail()


jutaro

Recommended Posts

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.

 

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

Link to comment
https://forums.phpfreaks.com/topic/129829-checking-error-on-mail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.