following the docs ive gotten some code to be able to connect to a mail serevr and check for new messages.
 
i got it working where it can say "4 new messages", but when i start trying to retrieve the message data, im hitting an error and cant figure out what the problem is.
 
I've attached the code and it's pretty simple, when it hits the retrieve command in the <@rows> it gives the error at the bottom of the message.
 
Anyone have any idea what I'm doing wrong?  The docs are a bit sparse...
 
Thank you for any help!
 

Error

An error occurred while processing your request:

File: mainmenu.taf
Position: sel_server_info_for_list
Class: Internal
Main Error Number: -2110

Failed to retrieve message (1471) with the specified session (POP3 Session: 41840FD0E1729FCB407D7A6C).

Meta Stack Trace:

Line Meta Tag
0001 <@emailsession retrieve name=local$loopemailvar messageid="<@var local$maillist[<@currow>,2]>" sessionid="POP3 Session: 41840FD0E1729FCB407D7A6C">
0016 <@rows array=local$maillist> <@emailsession retrieve name=local$loopemailvar messageid="<@var local$maillist[<@currow>,2]>" sessionid="POP3 Session: <@userreference>"> <@comment> <@email structure name=local$loopemailvar sessionid="POP3 Session: <@userreference>" type="Array"> <@email getentitybody partid=1 name=local$loopemailvar> <@email getfield name=local$loopemailvar fieldname="subject"> </@comment> </@rows>
*The meta stack is interpreted top-to-bottom: the top line shows the inner metatag that caused the error.
 
 
<@assign local$serverinfo value="@@local$resultset">

<@comment>
local$serverinfo:
[1,1]-server
[1,2]-port
[1,3]-user name
[1,4]-password
[1,5]-mailbox (ignored)
[1,6]-description of email account
</@comment>

<@emailsession open protocol="POP3" sessionid="POP3 Session: <@userreference>" 
server="@@local$serverinfo[1,1]" port="@@local$serverinfo[1,2]" 
username="@@local$serverinfo[1,3]" password="@@local$serverinfo[1,4]">
<@assign local$maillist value="<@emailsession list sessionid='POP3 Session: 
<@userreference>'>">

<html>
<head>
</head>
<@include file="@@domain$gvcolorfont">
<form method=post name=thisform>
<h3>Email - @@local$serverinfo[1,6]<br>
<@numrows array=local$maillist> Message<@if expr="<@numrows 
array=local$maillist>!=1">s</@if></h3>

@@local$maillist

<@rows array=local$maillist>
  <@emailsession retrieve name=local$loopemailvar messageid="<@var 
local$maillist[<@currow>,2]>" sessionid="POP3 Session: <@userreference>">

<@comment>
  <@email structure name=local$loopemailvar sessionid="POP3 Session: <@userreference>" 
type="Array">
  <@email getentitybody partid=1 name=local$loopemailvar>
  <@email getfield name=local$loopemailvar fieldname="subject">
</@comment>
</@rows>

<br><br>
<input type=submit value="Web Mail" 
onClick="document.forms['thisform'].action='<@appfile>?_function=webmail&<@userreferenceargument>'">&nbsp;&nbsp;
<input type=submit value="Utilities" 
onClick="document.forms['thisform'].action='<@appfile>?<@userreferenceargument>'">&nbsp;&nbsp;
<input type=submit value="Log Out" 
onClick="document.forms['thisform'].action='@@domain$gvlogin?_function=logout&<@userreferenceargument>'">&nbsp;&nbsp;
<input type=submit value="Apps" 
onClick="document.forms['thisform'].action='@@user$gvappmenu'">

</form>
</body>
</html>

<@emailsession close sessionid="POP3 Session: <@userreference>" mode="commit">
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to