Hi all :)

Im trying to loop thru a object structure with no luck.

Im using an object from Serverobjects called AspPop3, and everything
works fine, except when i try to loop thru a variant that is returned from
the object.

The structure i'm trying to output is explained in the documentation from
serverobjects:

"The MessageInfo property returns the header data that is received from a
call
to GetPopHeaders. After a call to GetPopHeaders, and if there are messages
on the server,
this property is a variant array of variant arrays that contains information
about the messages
on the server.
Values returned are:
intMessageID, strSubject, strDate, strFrom, strSender ,strTo, strReplyTo,
intSize, strStatus."



The error i get is this one:

--------------------------------------------------------------

Loop error

Error on Invoke for: /nCOM error 0x80020003. Member not found.

----------------------------------------------------------------

My code is (something) like this:
(And i've tried any combinations in the loop that i can
think of, using different collection parameters like "#mailer#",
"#mailer.mesageinfo#" etc.


<cfobject action="create" class="POP3svg.Mailer" type="COM" name="Mailer">
<cfset Mailer.RemoteHost = attributes.server>
<cfset Mailer.UserName = attributes.username>
<cfset Mailer.PassWord = attributes.password>
<cfset Mailer.MailDirectory = attributes.attachmentpath>

<cfset Mailer.GetPopHeaders(1)>

<cfloop collection="#Mailer#" item="akey">
<cfoutput>
#MessageInfo#
</cfoutput>
</cfloop>


If anyone could help me out with this one, I would be very, very, very
happy...


regards

Per


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to