note 40104 deleted from function.mail by nlopess
| From: | nlopess@php.net | Date: | Sun, 22 Feb 2004 10:00:02 +0000 |
| Subject: | note 40104 deleted from function.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65529@lists.php.net to get a copy of this message | ||
Note Submitter: Matt AKA Junkie
----
Because I have known many instances of where the mail() function flutters and needs to be redone, I
have this handy-dandy little tool:
<?
function force_mail($to, $subject, $message, $additional_headers='',
$additional_params='') {
do {
$mailed = mail($to, $subject, $message, $additional_headers, $additional_params);
} while ($mailed !== true);
}
?>