note 33423 added to function.mail
| From: | tobo at nyoc dot hu | Date: | Wed, 25 Jun 2003 15:13:03 +0000 |
| Subject: | note 33423 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50993@lists.php.net to get a copy of this message | ||
The only thing I couldn't figurate out related to the mail() function is how it is possible (if
it is anyway) no to send the mail real-time, but process it in the background somehow.
I needed to send around 8000 emails to my users at some server and each mail body had to contain
different modifications, specific to the user, so I have put the whole thing into a while loop, and
inside the while() I created the message body then sent the mail.
The only problem was that it started to send the mail one-by-one, so the execution time was very
long, which as I know can be lengthened by set_time_limit() within the while loop, but in the other
way I would have to wait the whole time sitting in front of the browser window waiting for it to be
finished.
If anyone has a clue around this please submit it, I hope the set_time_limit helped some people that
had similar problem, however it is not a final solution...
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33423
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33423&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33423&report=yes