Hi Pete
Actually the problem I am having is to get the email to be sent by running an app in the win2k server scheduler. I can do it from within VFP, but not so far from the scheduler, (which runs it like a service with NO user interface etc.),using win2k CDO objects.
Thanks 4 your input. I would much prefer a VFP solution rather than using and external dll or the MAPI activeX.
Bernard
>Hi Bernard,
>The best solution I found was with a free dll from
http://www.aspemail.com. Go to the download page.
>This dll does NOT require any email client to be installed (as with using MAPI). It goes like this.
>
>oMail = CreateObject("Persits.MailSender")
>oMail.Host = "yourSMTPServer@somewhere.com"
>oMail.FromName = "Bernard Bout"
>oMail.From = "bernard@ut.com.au"
>oMail.AddAddress("pete@pcprof.com.au","Peter Easson")
>oMail.IsHTML = .t.
>oMail.Body = "<HTML><BODY BGCOLOR=#0000FF>Hello World</BODY></HTML>"
>oMail.Attachment("C:\MYErrorTable.DBF")
>oMail.Send
>** Check aError()
>
>oMail.Reset and loop again
>Unlimited recipients, attachments etc
>regards
>
>Peter Easson, Sydney