Dear monks, I did a perl script that uses 5 smtp servers and sends newsletters to +a recipient All this is done using Parallel::ForkManager to use concurrent connect +ions of 5 smtp servers and until the smtp list is all done it sends f +ine...But now I want to make a perl script that takes the recipient a +ddresses from file like this : #!/usr/bin/perl $fileaddress = $ARGV[0]; open(INFO, $fileaddress); @addresses = <INFO>; close(INFO); $" = ","; chomp @addresses; ... smtp->recipient(@recipients); ... And sends in parallel with 2 smtp servers to 10 recipients and so on u +ntil the $fileaddress is all done...I mean it takes the first 10 emai +l addresses from addresses.txt and sends with the first smtp server b +ut in the same time it sends with the second smtp server to the next +10 email addresses...After this is done it takes the next 2 smtp serv +ers and sends another 10 emails each to 20 different email addresses. +..I want to do this to don't force too much my smtp servers...Please +help

In reply to Net::SMTP newsletter by commonlybon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.