You are here: Re: mail sending within a while failed « PHP Programming Language « IT news, forums, messages
Re: mail sending within a while failed

Posted by -Nacho- on 11/07/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация