[ Home ] [ Features ] [ Products ] [ FAQ's ] [ Screens ] [ Support ] [ Downloads ] [ About ] [ Discussion ]


the software that grows with you

 

V32PopMsgs()

Retrieves the  messages text from a given POP3 account given the message ids as an array.

Syntax

V32PopMsgs( <cServer>, <cAccount>, <cPassword>, [nPort],  <aIds> )

Arguments

cServer Character string representing address of the POP3 server.
cAccount Character string specifying accound id of the POP3 mail box.
cPassword Character string as password used to access that account.
nPort Numeric port address. Default is 110.
aIds Array of numeric ids body of which has to be retrieved.

Returns

An array with  messages text corresponding to number of ids supplied if successful, otherwise an array with an empty element.

Description

This function retrieves the message text of a POP3 mail account from <cServer> given the specific message ids as an array.

Usage

local cServer := 'vouchcac.com'
local cAccount := 'test@vouchcac.com'
local cPassword := 'test'
local nPort := 110
local aStatus, aInfo, aMsgs, aIds

aStatus := V32PopStatus( cServer, cAccount, cPassword, nPort )
if len( aStatus ) > 1
   ? 'Number of Messages: ', aStatus[ 1 ]
   ? 'Size of Messages in Bytes: ', aStatus[ 2 ]

   if aStatus[ 1 ] > 0 
      aInfo := V32PopInfo( cServer, cAccount, cPassword, nPort )
      if len( aInfo[ 1 ] ) > 1
         ? 'Message Id: ', aInfo[ 1,1 ]
         ? 'Message Size: ', aInfo[ 1,2 ]
         ? 'Message Header: ', aInfo[ 1,3 ]
         ? 'Message Deleted: ', aInfo[ 1,4 ]
         ? 'Message From: ', aInfo[ 1,5 ]
         ? 'Message Date: ', aInfo[ 1,6 ]

         aIds := { 1, 2, 3 } // The ids obtained through aInfo
         aMsgs := V32PopMsgs( cServer, cAccount, cPassword, nPort, aIds )

      endif
   endif
endif

Tips

 
 

[ Home ][ Features ] [ Products ][ About Us ][ FAQ's ][ Screen Shots ][ Downloads ][ Support ][ Discussion ]
.

Vouch is a Trademark of Pritpal Bedi
All other Trade Marks are the property of their respective owners.
Copyright 1993-2011 Pritpal Bedi. All rights reserved.
Hit Counter  
You are Visitor # since 14 May 2002