Here is a sample code for ASP Pop3 component.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ASP Pop3 mail receival</title>
</head>
<body>
<%
Set Mailer = Server.CreateObject("POP3svg.Mailer")
Mailer.RemoteHost = "mail.myserver.com"
Mailer.UserName = "
[email protected]"
Mailer.Password = "mypassword"
Mailer.MailDirectory = "c:\projects\myfolder\"
Mailer.OpenPop3
rem We could do multiple retrieves here but this demo only shows the
rem selected message.
Mailer.MailDirectory = "c:\projects\myfolder\"
Mailer.RetrieveToFile 1, "1.txt"
Mailer.ClosePop3
%>
</body>
</html>
-----------------------------------------------------------
After executing this, please check the file 1.txt from c:\projects\myfolder. This should contain all the mails from the pop account you are checking. (Please do not forget to substitute correct host address, username and password in the above code.)
Are you trying to retrieve IMAP mails ? This is not possible I think. All the components I suggested will fetch only POP mails.
Have luck
Cheers
Madhu.
NB: Please note that the evaluation version of this component will expire today.