Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POP3 email problem 1

Status
Not open for further replies.

drew10

Programmer
Feb 26, 2002
123
0
0
US
I'm writing a module for the ibuyspy portal that allows users to enter a pop3 and smtp server, username, and password to check and send email. The problem that I am running into is that when create a loop to retrieve each message in the mailbox it executes the retrieve call too quickly, and does not capture all of the information from the email. This sounds strange, but when I step through the loop one email at a time, it retrieves all of the info. I am very puzzled. Any suggestions?

Thanks,
drew10
 
You could stall the thread for so many milliseconds at the end of each iteration by using the following code:

System.Threading.Thread.Sleep(500)

This would stall the current thread (and therefore, your loop) for a half a second at the end of each iteration of the loop... Modify to be as short as possible, but long enough to retrieve all the information.

:)
paul
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Thanks. I've tried it and it works!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top