jutaro Posted October 23, 2008 Share Posted October 23, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.