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

Is there a way to do this without "sleep rand 10" to take the smtp ser +vers in the correct order

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

    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.

      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.