Last active
March 22, 2017 09:21
-
-
Save jrdnrc/8e7cb579536f4f33bc1fec1cdc77f68f to your computer and use it in GitHub Desktop.
Parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types = 1); | |
use PhpMimeMailParser\Parser; | |
$raw = base64_decode($switched); | |
$parser = (new Parser)->setText($raw); | |
$parser->getMessageBody('html'); // get body in HTML format | |
$parser->getMessageBody('text'); // get plain text body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment