Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASPPop3 (Server Objects) fails to return email details

Reply
Thread Tools

ASPPop3 (Server Objects) fails to return email details

 
 
Rich_C
Guest
Posts: n/a
 
      07-31-2005
Can anyone tell me why this code doesn't work? The original came from
an example in this group, but was modified slightly when the original
failed to return message details.

I am able to connect to the server and see the number of messages on
the server, but message details (sender, subject, body, etc.) are not
returned.

_______________
Dim Mailer
Set Mailer = Server.CreateObject("POP3svg.Mailer")
Mailer.RemoteHost = "mail.xxxx.com"
Mailer.UserName = ""
Mailer.Password = "pwd"
Mailer.OpenPop3
Dim iMessages
iMessages = Mailer.MessageCount
Response.Write "There are " & iMessages & " messages on the
server.<p>"

Dim iLoop

Response.Write "<table border=1 align=center cellspacing=1>"
Response.Write
"<tr><th>&nbsp;</th><th>Subject</th><th>From</th></tr>"

For iLoop = 1 to iMessages
'If Mailer.Retrieve(iLoop) then
Mailer.Retrieve iloop

Response.Write "<tr>"
Response.Write "<td><a href=""readMessage.asp?ID=" & iLoop &
""">Read</a></td>"
Response.Write "<td>" & Mailer.Subject & "</td>"
Response.Write "<td>" & Mailer.FromName & " (<a href=""mailto:"""
& Mailer.FromAddress & """>" & Mailer.FromAddress & "</a>)</td>"
Response.Write "</tr>"
'End If

Next

Response.Write "</table>"

Mailer.ClosePop3

 
Reply With Quote
 
 
 
 
Rich_C
Guest
Posts: n/a
 
      07-31-2005
Thanks Dave -
Even if I only try to display one part of the email (Subject, FromName,
etc.) nothing is returned.

 
Reply With Quote
 
 
 
 
Bob Lehmann
Guest
Posts: n/a
 
      07-31-2005
Did you look at the HTML, as Dave suggested? Or, are you assuming nothing
was returned because you don't see it on the page?

Bob Lehmann

"Rich_C" <> wrote in message
news: oups.com...
> Thanks Dave -
> Even if I only try to display one part of the email (Subject, FromName,
> etc.) nothing is returned.
>



 
Reply With Quote
 
Rich_C
Guest
Posts: n/a
 
      07-31-2005
I looked at the HTML. View Source for the page shows:
_____________________
<html>
<head>
<head>
<body>

There are 18 messages on the server.<p><table border=1 align=center
cellspacing=1><tr><th>&nbsp;</th><th>Subject</th><th>From</th></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr></table>
</body>
</html>
_____________________
This may not correspond exactly to original code as I've been working
on it since posting.

 
Reply With Quote
 
Rich_C
Guest
Posts: n/a
 
      08-08-2005
I hate to revisit this old issue, but I have a question about how mail
servers assign email IDs. This script attempts to retrieve mail with
ID 1 to n with n being the number of messages on the server for the
account.

Can anyone tell me how Email IDs are assigned? Is it likely that the
first message isn't number 1 and therefore my script returns nothing?
If this is the case, is it possible to determine which email IDs are in
the mailbox so they can be retrieved?

If it makes a difference, the account in question is on a shared server
and the script does not produce any errors when it runs.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to detect return value from stored procedure used by a Details =?Utf-8?B?QmlzaG95?= ASP .Net 1 12-24-2006 05:54 PM
Show Details/Hide Details link button =?Utf-8?B?Sm9l?= ASP .Net 1 03-13-2006 04:51 PM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
Warning "Re: Your details" & "Re: My details" Joe Lee Computer Support 3 05-17-2004 05:08 PM
Return Of The King - UK Region 2 - Full DVD Details Chris - DVD Debate DVD Video 0 02-08-2004 06:39 PM



Advertisments