while($data=~/([\w.-]+\@(?:[\w.-]\.)+\w+)/gcs){ #e-mail address in $1 }
If I were use I'd consider using the Mail::Bulkmail module to do the sending. It is designed for doing mass-mailings like you describe.
In reply to Re: pattern matching and sendmail issues
by lhoward
in thread pattern matching and sendmail issues
by csorensen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |