Hello,
I've found that using the Indy components that come with Delphi work quite nicely for anything to do with socket programming. There are a few demos that come with it as well including emailing, FTP, TCP/IP and more. If your version of Delphi does not have these demos you should be able to get them (and any updates to the Indy components) from the
Indy site.
Hope that helps!