Lasso Soft Inc. > Home

[Email_Parse->Body]

[Email_Parse->Body] returns the body of the email message. For simple messages the text of the message is returned.

For multi-part messages the contents of the first text part is returned in order of preference text/plain, then text/html, then any text part. If no text part is found then the email is searched recursively for a valid text part. Otherwise, the first part of the message is returned.

An optional parameter allows a different MIME part to be returned. The same search is performed, but the desired MIME type is returned in preference to the text/plain type.

Quoted-printable parts are decoded using their original character set and returned as a Unicode string. Base64 encoded parts are automatically decoded into raw bytes. text/enriched parts are automatically converted to HTML syntax.

The [Email_Parse->Size] and [Email_Parse->Get] tags can be used for lower-level access to the parts of the email message.

  • Syntax
  • Parameters
[Var: 'myMSG' = (Email_Parse: $myPOP->(Retrieve))]
[$myMSG->Body]
[$myMSG->(Body: 'text/html')]
Optional Parameters
Part Type The type of the part to be fetched.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link [Email_Parse->Body] Category Email
Type Member Data Source Any
Support Preferred Version 8.0
Output Type None Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft