Power,
Check out the downloads section of UT. I put a some VB code for a winsock control wrapper so that you can use it in VFP. There is also a VFP form in the file that shows how to use the control, etc. If you need any help, just give me a shout. The file is called wswrap.zip and you should be able to find it in the recent entries section.
Phillip
>What I want to do is to get the username, e-mail address, company name, etc
>from a table in VFP, combine them together to become an e-mail and then send
>to each user. I have tried to use "run" to execute an external e-mail
>program calls "Blat.exe" to send e-mail on the DOS-command line. So far it
>works but I need to combine the command line into a string, then copy this
>string into a batch file (since "run" cannot allow me to use a variable
>after it) then use the "run" to run the batch file. And if I want to send
>100 mails, the DOS-prompt window will appear 100 times on the screen, it is
>annoyable. So do we have any solution? OLE automation? How to send an e-mail
>inside VFP?
>Thanks
"D'OH!" --Homer Simpson