Lasso Soft Inc. > Home

[ email_parse->HEADER ]

Method

[Email_Parse->Header] returns a single MIME header from the email message. If one header with the name is found then a string is returned. If multiple headers are found then an array of strings is returned. The -Join parameter can be used to specify a character that will be used to join the array if multiple headers are returned.

If an -Extract parameter is specified then all comments are stripped from the returned header. If a -Comment parameter is specified then only comments are returned. If a -SafeEmail parameter is specified then the header is returned as an obscured email address which should help prevent email harvesting on your Web site.

Email headers are automatically decoded if they are sent using quoted-printable or binhex encoding. The -NoDecode parameter can be used to suppress the automatic decoding and return the raw header.

  • Syntax
local(myMSG = Email_Parse(#myPOP->Retrieve))
#myMSG->Header('To')
#myMSG->Header('Received', -Join=',')
Examples

No examples found

Recent Comments

No Comments found

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