TwistPHP Documentation

processEmailSource

File path: dist/twist/Core/Models/Email/SourceParser.model.php
Namespace: Twist\Core\Models\Email
Extends:

processEmailSourcePass in the full raw source of an email and it will parse and return as a simple usable array of data.

Parameters

Name Type Description
$strEmailSourcestringn/a
[$blShowHeaders = false]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strEmailSource 'foo';
$blShowHeaders false;

//Call the function processEmailSource with the example vars
$resSourceParser = new \Twist\Core\Models\Email\SourceParser();
$resSourceParser -> processEmailSource($strEmailSource$blShowHeaders);