in reply to Re^3: Net::SMTP newsletter
in thread Net::SMTP newsletter

Oh, my bad then...Thanks so much for the code and I have one more thin +g to ask...Is there any way to take the first 2 smtp servers and send + 10 emails each and than take the others 2 and send another 10 emails + and so on in some sort of loop till all the emails are sent? I want +to use only 2 smtp servers in parallel...

Replies are listed 'Best First'.
Re^5: Net::SMTP newsletter
by Corion (Patriarch) on Dec 22, 2008 at 15:57 UTC

    Yes. Just rewrite the program so that each thread uses the servers subsequently, instead of just using one mail server.

      I am just a noob in perl Corion...so please give me further details,an +d NO I am not asking for the full code just some hints to work on...I + never worked with simple threads and neighter with threads::queue I +just had some fun with Parallel::Forkmanager...Anyway i'm really a no +ob sorry for any headacke I may cause but I really need help...

        What part of the code do you have problems with? My code is a self-contained example of how to easily do things in parallel by using threads. I'm sure you could basically do the same using Parallel::ForkManager. So maybe you want to do that.