Page 1 of 1
mail() inquiry:
Posted: Tue May 03, 2005 2:31 am
by harrisonad
Will mail() function execute properly even if the receipient doesn't exists.
for example:
Code: Select all
$receipient = "somebody@somewhere.orgy";
$subject = "Got you!";
$message = "I knew you can't detect false receipients.";
mail($receipient,$subject,$message);
you have any suggestions?
re
Posted: Tue May 03, 2005 4:22 am
by harrisonad
I got this from mail() function documentation
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.
which means that testing for the return value of mail() function such as:
Code: Select all
if(mail($receipient,$subject,$message)){
// do stuff..
}
... will not tell us that the receipient's email address exists.
anyone here has a better approach?
Posted: Tue May 03, 2005 5:25 am
by timvw
a little websearch for "php e-mail validation" returned for example this:
http://www.zend.com/zend/spotlight/ev12apr.php