Re: mail sending within a while failed




Miguel Cruz ha escrito:

"-Nacho-" <yoestepario@xxxxxxxxxxx> 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

.



Relevant Pages

  • Re: mail sending within a while failed
    ... object mail I use. ... whole code embedding the code of the required files and now I get: ... Class mime_mail {blah blah} ... needs to be before your while loop. ...
    (comp.lang.php)
  • Re: VBA end if without block if and loop without do errors on code
    ... ' blah blah blah ... It's not like you can force an outer loop to iterate by specifying its ... I had the app compiled 3 times: native code, ... no difference between both native code compilations, ...
    (microsoft.public.vb.general.discussion)
  • RE: Problem with For...Next loop
    ... "Jey" wrote: ... If (blah blah blah) = Then Exit For ... Next intI ... loop more than 10000 times, so I go in and change it to 1000000... ...
    (microsoft.public.access.modulesdaovba)
  • Re: Finding Multiple instances of a style and offering change of style
    ... 'blah blah blah ... > style found and not loop round the document 50 times. ... > Public Sub HRef ... > Selection.MoveRight wdCharacter, 1 ...
    (microsoft.public.word.vba.general)
  • ruby thread and gets
    ... puts "please enter blah blah" ... paused waiting for this, I mean thread_b will not working. ...
    (comp.lang.ruby)