Hello! Even i tried the code. here's what i did..
#!/usr/bin/perl use DBI; my $DB_NAME = 'smtpclient'; my $HOST_NAME = 'localhost'; my $USER_NAME = 'root'; my $PASSWORD = ''; my $dbh = DBI->connect ( "DBI:mysql:database=$DB_NAME;host=$HOST_NAME;", $USER_NAME, $PASSWORD, {'RaiseError' => 1} ); $query_from_email = qq { SELECT mail_from_account_id, mail_from_account_emai +l, mail_from_user, password, host, port, auth_type , verbose FROM smtp_account_info # LIMIT 100 }; #print $query_from_email."\n"; $sth_from_email = $dbh->prepare($query_from_email); $sth_from_email -> execute(); @to_id = ("samsonp_81\@yahoo.com","rangaprasadmutyala\@yahoo.co.in","h +emarajun\@yahoo.co.in","samsonp81\@gmail.com","samson.potla\@gmail.co +m"); #$to = 'samsonp_81@yahoo.com'; while (($mail_from_account_id, $from, $user ,$pass, $host, $port, $aut +h_type, $verbose ) = $sth_from_email->fetchrow_array ()){ for($i=0; $i <= $#to_id; $i++){ my $returncode = `/usr/local/mailcntr/sam_smtp.pl --host=$ho +st --port=$port --user=$user --pass=$pass --from=$from --to=@to_id[$i] --data=data.txt --ve +rbose=$verbose --auth-login`; print $returncode; } } but i need to enhance it more..

In reply to Re^2: mass mailing...... by johnny
in thread mass mailing...... by johnny

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.