Extracting Email Address from .eml file: PHP app available?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Extracting Email Address from .eml file: PHP app available?

Post by simonmlewis »

Hi

I have a winzip file that's got over 300 emails (.eml files).
I need to extract the email address from them, and insert them into a MySQL database.

Apart from doing one by one, which I am NOT doing, anyone got any idea how to extract them all?

This isn't really a PHP query, but someone here in PHP might have come across this and knows a way to do it.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: Extracting Email Address from .eml file: PHP app available?

Post by Eric! »

If the .eml file is text you could just use regex statements to extract email addresses from it. If it isn't plain text, maybe you could find a tool on the internet to convert it to plain text.
Post Reply