2017 © Pedro Peláez
 

library email-forward-parser

Parse forwarded email

image

jeremymarc/email-forward-parser

Parse forwarded email

  • Friday, June 28, 2013
  • by jeremymarc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

EmailForwardParser

Build Status, (*1)

This is a small PHP library to parse forwarded email content, inspired by EmailReplyParser., (*2)

Installation

If you don't use a ClassLoader in your application, just require the provided autoloader:, (*3)

``` php <?php, (*4)

require_once 'src/autoload.php';, (*5)


Usage ----- Simply call the read method with the email content like this: ```php <?php $email = EmailForwardParser::read($body); $from = $email->getFrom(); $to = $email->getTo(); $fromName = $from['name']; $fromEmail = $from['email']; $toName = $to['name']; $toEmail = $to['email']; $date = $email->getDate(); //DateTime $subject = $email->getSubject(); $body = $email->getBody();

The Versions

28/06 2013

dev-master

9999999-dev

Parse forwarded email

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jeremy Marc

parser email forward