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

The sleep rand 10 was just for me to simulate sending the emails. You would simply put the sending code there. There is no "correct order" anymore, because you will be sending in parallel.

Replies are listed 'Best First'.
Re^4: Net::SMTP newsletter
by commonlybon (Initiate) on Dec 22, 2008 at 15:55 UTC
    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...

      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...