Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 392 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 392 Bytes

emailParser

PHP class that parses raw email with support of attachments.

Usage

include_once 'emailParser.class.php';
$parser = new emailParser(file_get_contents('raw_email_data.txt'));

$parser->getHTMLBody();
$parser->getPlainBody();
$parser->getSubject();
$parser->getAttachments();
$parser->getAttachments('pdf');
$parser->getTo();
$parser->getHeader('From');