Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASPPop3 Component: retrieve messages
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 November 2001 :  03:30:42  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I am trying to retrieve my messages from a web server using the asp mail component. below is the code i am using...


<%
'Open a connection to the POP3 server
Dim Mailer
Set Mailer = Server.CreateObject("POP3svg.Mailer")
Mailer.RemoteHost = "mail.eznetideas.com"
Mailer.UserName = "webmaster@eznetideas.com"
Mailer.Password = "********"
Mailer.OpenPop3

'Find out how many messages there are
Dim iMessages
iMessages = Mailer.MessageCount
Response.Write "There are " & iMessages & " messages on the server.<p>"

Dim iLoop

'Display the table
Response.Write "<table border=1 align=center cellspacing=1>"
Response.Write "<tr><th> </th><th>Subject</th><th>From</th></tr>"

'Loop through all of the available messages
For iLoop = 1 to iMessages
If Mailer.Retrieve(iLoop) then
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 'iLoop

Response.Write "</table>"

'Close the connection to the POP3 server
Mailer.ClosePop3
%>


it will display how many messages are on the pop mail server but Mailer.Retrieve(iLoop) keeps returning flase. does anyone know why?

Brad

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 November 2001 :  14:51:41  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
has anyone ever even used this product?

Brad
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 01 November 2001 :  16:35:37  Show Profile
I just tried it and used the code that is shown in this article:

http://www.4guysfromrolla.com/webtech/092201-1.shtml

It showed the messages just fine.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 November 2001 :  16:53:13  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
thats wierd, i am copying the exact code myself, replacing with my login info and it comes back and tells me how many messages i have on the server, but it will not list them out. Would you have any idea why this would be?

Brad
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 01 November 2001 :  17:09:56  Show Profile
There is some online documentation for ASPPop3 here:

http://www.serverobjects.com/comp/Asppop3.htm
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 November 2001 :  17:56:17  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
im guessing it has to be something wrong with the component installed on the server. Maybe you can do me a favor to help me make sure thats the problem. If you tested it to your email account, do you have access to set up a temporary email account just for like 10 - 15 mins? if it returns all the data then its my email account, if it doesnt do anything then i know its the component. If you can do this then please let me know the exact settings you put in the

Mailer.RemoteHost = ""
Mailer.UserName = ""
Mailer.Password = ""

Brad
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 01 November 2001 :  21:13:45  Show Profile
You can setup a Yahoo e-mail account and get POP3 access to it.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 02 November 2001 :  01:58:46  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
thanks richard, i will try it.

Brad
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 02 November 2001 :  10:56:50  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
richard,

is this what you used?

Mailer.RemoteHost = "pop.mail.yahoo.com"
Mailer.UserName = "redbrad02@yahoo.com"
Mailer.Password = "redbrad"

brad

Brad
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 02 November 2001 :  15:50:20  Show Profile
Your username doesn't need the @yahoo.com part.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07