Creating a POP3 Server - Setting the database connections
(Page 2 of 5 )
Click on adoconnection1 and go to the object inspector's properties tab. Click on the ellipses button next to the ConnectionString property. A dialog box should pop up (see below).

Make sure that "Use Connection String" is selected and click on build. Another dialog box should pop up (see below):

Select the "Microsoft.Jet.OLEDB.4.0" option and click next. A dialog box like the one below should appear:

The only thing you change on this dialog box is question number 1. Click on the ellipses button and go to where you've downloaded the database that I've included in this tutorial. DO NOT CHANGE ANYTHING ELSE ON THIS DIALOG BOX!!
Click OK and OK again. On adoconnection1's properties tab, go to "loginPrompt" and select "False." That's it!
Next, click on ado1's "connection" property in the object inspector and select "ADOConnection1." Do the same for q2 and we are done with the database set up!
Optional
1. Create a text file. Give it any name you like.
2. Click on logfile then go to the object inspector's "FileName" property. Point to the location of a textfile that you've created.
The reason for doing this is so that you can see the communication between the pop3client and your pop3 server. Also it makes it easy for you to debug.
Next: Implementing the Commands >>
More Delphi-Kylix Articles
More By Leidago