note 38910 deleted from ref.mail by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 11 Jan 2004 19:33:27 +0000 |
| Subject: | note 38910 deleted from ref.mail by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63327@lists.php.net to get a copy of this message | ||
Note Submitter: Jeremy in Seattle
----
xmail code supplied by Gabz, below, has a minor bug: the line which reads:
for ($a=0;$a<=count($attach_filepath);$a++) {
should read:
for ($a=0;$a<count($attach_filepath);$a++) {
Or you always receive a "nein" at the end of the message. It might also be good to replace
echo "NEIN"; with
return(false);
so that the function FAILS and returns that status if it doesn't find one of the files you are
trying to send.