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>"
'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?
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?
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