Skip to main content

Parse message

XML
<mail:parse var="var">
string
</mail:parse>

<mail:parse /> parses the raw format of an e-mail message according to RFC 2822.

<mail:parse /> returns an array comprised of the following items:

Key Description

date date (Unix timestamp) subject subject sender sender sender_email e-mail address of sender sender_name name of sender to recipients to_email e-mail address of first recipient to_name name of first recipient to_count total number of recipients cc recipients of carbon copy bcc recipients of blind carbon copy messageid message ID referenceid in-reply-to message ID receipt receipt flag autoreply autoreply flag spam spam flag contenttype content type text text part * html html part * attachments attachment parts * simpletext simple text simpleattachments simple attachments

  • Each part is an array comprised of the following items:

Key Description

contenttype content type encoding content transfer encoding charset character set boundary boundary delimiter disposition content disposition filename filename contentid content ID rawheader raw header rawbody raw body

Attributes

NameTypeDescriptionDefined By
varvarResult variable name mail:parse

Results

BindingTypePredicate
vararrayno-result-propagation