Lasso Soft Inc. > Home

[ Email_Pop->Retrieve ]

Method

[Email_POP->Retrieve] returns the raw text of a message from the server. If a position is specified then the raw text of that email is retrieved. If no position is specified then the raw text of the current message is specified. The output of this method is usually then parsed with the [Email_Parse] methods.

An optional second parameter specifies the number of lines of the message to retrieve. 0 will just retrieve the headers for the message. Omitting the parameter will fetch the entire message.

The current message is set when the [Email_POP] type is used in [Iterate] or any time [Email_POP->Get], [Email_POP->Retrieve], [Email_POP->Delete], [Email_POP->Headers], or [Email_POP->UniqueID] is called with a position.

  • Syntax
var(myPOP = Email_POP(-Host='mail.example.com', -Username='Example', -Password='Example'))
Iterate($myPOP, Var(UniqueID))
  var(myMSG = Email_Parse($myPOP->Retrieve))
  ...
/Iterate
$myPOP->Close
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