PHP code example of stechstudio / email-forward-parser

1. Go to this page and download the library: Download stechstudio/email-forward-parser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

stechstudio / email-forward-parser example snippets

  
use STS\EmailForward\Parser;

$parser = new Parser();

$result = $parser->read($emailBody, $emailSubject);

echo $result['forwarded']; // true
echo $result['email']['from']['address']; // [email protected]