Answer the question
In order to leave comments, you need to log in
Does anyone know a good email parser?
Good afternoon. I'm looking for an email parser from a list of sites. Maybe someone used Emex, ePochta and others?
Criteria:
Answer the question
In order to leave comments, you need to log in
< ?
set_time_limit(0);
$lines = file('mail.txt');
$out = array();
foreach ($lines as $line_num => $line) {
$url=file_get_contents(trim($line));
preg_match_all('/[\.\-_A-Za-z0-9][email protected][\.\-A-Za-z0-9]+
?[\.A-Za-z0-9]{2,}/', $url, $out);
echo $line.' ';
print_r($out);
echo '
';
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question