Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: pattern matching and sendmail issues

by lhoward (Vicar)
on Jun 29, 2000 at 01:53 UTC ( [id://20276]=note: print w/replies, xml ) Need Help??


in reply to pattern matching and sendmail issues

A simple regular-expression extractor for internet e-mail addresses is (not fully RFC compliant, but will handle %99 of the addresses you see out there):
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://20276]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-19 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found