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);Moderator: General Moderators
Code: Select all
$receipient = "somebody@somewhere.orgy";
$subject = "Got you!";
$message = "I knew you can't detect false receipients.";
mail($receipient,$subject,$message);which means that testing for the return value of mail() function such as:
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.
Code: Select all
if(mail($receipient,$subject,$message)){
// do stuff..
}