Take a look at remail.dll (
www.direct-print.com). I use this in a lot of
of progs for connecting over DUN and it works well with all kinds of windows-versions. If you want to dive a little deeper look at
http://www.news2news.com/vfp/index.php where you can find information on how to use the necessary api-calls.
HTH
Thomas