Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Re: To Be More Specific
Achal Gaggar

From: Mumbai, India
Posts: 8
Member Since: 09/06/03
posted September 18, 2003 2:03 AM

i Am using this code to display the messages in my asp pages:
--------------------------------------------------
<%
Dim Pop1
Set Pop1 = Server.CreateObject("Dart.Pop.1")
Pop1.Login "192.168.1.5", Session("Username"), Session("Password")
Pop1.AttachmentDirectory = ""
Pop1.Get msgContent, MsgNum
Pop1.Logout

Const msgDate = 26

Dim Message
For each Message in Pop1.Messages
Response.Write "Date: " & Message.Header.Find(msgDate) & "<br>" & vbcrlf
Response.Write "From: " & Message.From & "<br>" & vbcrlf
Response.Write "Subject: " & Message.Subject & "<br>" & vbcrlf
Response.Write "Message: " & Message.PartList(1).Data & "<br>" & vbcrlf & "<br>"
Next
%>
--------------------------------------------------

And I am getting thid error while loading the page

Date: Sat, 02 Aug 2003 12:19:36 +05-30
From: admin@sari.com
Subject: Welcome to CMailServer

Dart.Parts.1 error '800a2ee1'

Parameter 1 of the method used is invalid or not appropriate.

/dart1/Mail.asp, line 25

--------------------------------------------------
Line 25 indicates this line in the code

Response.Write "Message: " & Message.PartList(1).Data & "<br>" & vbcrlf & "<br>"

--------------------------------------------------
Please Help me in Solving this problem

Thanking You
Achal Gaggar
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 18, 2003 7:23 AM

It means the message has no parts. It's probably a single part message. Use .Text to get it.
Achal Gaggar

From: Mumbai, India
Posts: 8
Member Since: 09/06/03
posted September 19, 2003 12:11 AM

ThankYou Sir
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX