Page 1 of 1

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

Posted: Sun Oct 11, 2009 2:58 am
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.

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

Posted: Sun Oct 11, 2009 8:46 am
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.