|
Posted by Jerry Stuckle on 07/29/06 13:52
-Nacho- wrote:
> Jerry Stuckle ha escrito:
>
>
>>-Nacho- wrote:
>>
>>>Thanks, Noodle, but I've just tried out the solution with a sleep of 5
>>>minutes and the problem persists. Only the first mail of the list is
>>>sent. :(
>>>
>>>-
>>>Nacho
>>>
>>>
>>>
>>>Noodle ha escrito:
>>>
>>>
>>>
>>>>Try experimenting with:
>>>>
>>>>sleep()
>>>>http://www.php.net/manual/en/function.sleep.php
>>>>
>>>>usleep()
>>>>http://www.php.net/manual/en/function.usleep.php
>>>>
>>>>or
>>>>
>>>>time_nanosleep()
>>>>http://www.php.net/manual/en/function.time-nanosleep.php
>>>
>>>
>>5 minutes is way too long. Most servers are set up to time out scripts
>>at 30 seconds or so.
>>
>>Try 2-3 seconds and see if more go out. Or, if you have a lot, try one
>>of the mailing list programs freely available.
>>
> I've been able to see that the problem is not due to time, but to the
> object mail I use.
>
> I use an object "mail" and I don't know how to kill it or to
> deinstantiate it after the first mail sending, to be able to
> instantiate it again for the next mails. This was hidden by the
> requires so it was not returning any error msg, but I've created a
> whole code embedding the code of the required files and now I get:
>
> Cannot redeclare class mime_mail in
> /home/transper/public_html/msend.php on line 52
>
>
>
> Thanks
>
>
(Top posting fixed)
Not being familiar with mime_mail (or even which version of mime_mail -
a quick Google search shows several of them) I can't help you. But
embedding files the second time is never the answer.
Where did you get the files? Do they have a support forum?
If not, you could try posting your failing code (not the redeclaration
error - the first error). It's impossible to tell what your problem is
without it.
P.S. Please don't top post. This group uses bottom posting as a standard.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|