MailParser
class MailParser
This class parses Mail templates.
Returns the structured file information.
Constants
SECTION_SEPARATOR |
|
Methods
static array
parse(string $content)
Parses Mail template content.
Details
at line 31
static array
parse(string $content)
Parses Mail template content.
The expected file format is following:
Settings section == Plain-text content section == HTML content section
If the content has only 2 sections they are considered as settings and HTML. If there is only a single section, it is considered as HTML.