Bernard:
I would uncouple this from OutLook.. as mentioned in a couple other messages, you don't need OutLook and you can simplify things much more easily by using something that works directly with SMTP. Two suggestions:
1. The simplest thing I've found is a command line batch eMailer called "BLAT".
http://www.interlog.com/~tcharron/blat.htmlThis can be scheduled using the AT command or Windows scheduler, depending on what version of the OS you are running. It seems to be reliable.
2. Check out the West-Wind-IP Stuff library from West Wind. I think it has been reincarnated into something a little more comprehensive....but I use this within FoxPro for all things related to eMail. Takes a little more fiddling to get it running than #1, above but works as a FoxPro solution.
>I have a requirement to have a VFP application be able to send email when triggered.
>
>I know how to do this with Outlook.
>
>The problem is that this app will run "SCHEDULED" on a WIN2K server so there is no user intervention that can be done.
>
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.