I'd follow gav^'s advice regarding using Mail::Bulkmail to send mails in bulk rather than one by one. Also, you don't need to loop through 1000 entries in an SQL database if what you mean is issuing 1000 select requests. What you need is "select name, email from rd_news;", dump the emails to a file, and use Mail::Bulkmail. Otherwise, you can hack Bulkmail to take a list of emails instead of reading them off from an external file.
Hope this helps,,,
Aziz,,,
Update: Mail::Bulkmail does take a list of emails
Update2: Why are you using id smallint(4) DEFAULT '' NOT NULL auto_increment? In particular, why are you limiting the display length to 4? Shouldn't the default be 0? And shouldn't the type by unsigned?
In reply to Re: Perl, mysql and mass-mailing
by abstracts
in thread Perl, mysql and mass-mailing
by wilstephens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |