You might want to try Nigel Coates' MAPI Mail Class in the Downloads section. On the UT Main page, click the downloads link. Do a search on member #17378. Or just go to
http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~?2,54,Forum=5,28,1034>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
Mark McCasland
Midlothian, TX USA