Posted by -Nacho- on 12/17/18 11:54
Miguel Cruz ha escrito:
> "-Nacho-" <yoestepario@hotmail.com> wrote:
> > 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
>
> This:
>
> Class mime_mail { blah blah }
>
> needs to be before your while loop.
>
> Also make sure you are not include()ing the file containing this:
>
> Class mime_mail { blah blah }
>
> within your while loop.
>
> miguel
> --
> Photos from 40 countries on 5 continents: http://travel.u.nu
> Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
> Airports of the world: http://airport.u.nu
Thanks, Miguel.
The problem was just there. I was invoking the class constructor within
the loop. I got the include() out of the loop and now everything is
working fine.
Thanks a lot!
-
Nacho
[Back to original message]
|