in reply to Send mail with large address book

I'd suggest using a database for several reasons :
UPDATE :
Now for more general guidelines :
I'd also suggest that you add some error checking (what if the open fails ?)
Checking the data adresses, and submited fields for weird characters/validity, may be a good idea too.
MZSanford point out a right problem, you should may be at least put several adresses on the CC or BCC field, to reduce the number of time you open sendmail if you want to keep this method...

"Only Bad Coders Code Badly In Perl" (OBC2BIP)