I came across this neat little program for usng Outlook via Foxpro. It works well, and most of my clients have Outlook anyway, but whenever I run it I get a warning, I assume from Outlook, that some program (mine!!) is accessing Outlook and I have to choose if I allow or cancel the operation. I want to just send it and forget it. Any idea how to do this?
And, any idea if other programs like Eudora, etc. can be accessed the same way. Outlook Express is NOT supposed to work with this:
#DEFINE MAILITEM 0
#DEFINE IMPORTANCELOW 0
#DEFINE IMPORTANCENORMAL 1
#DEFINE IMPORTANCEHIGH 2
oOutLookObject = CreateObject("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(MAILITEM)
.Recipients.Add("email@example.com") && uses the Recipients collection
.Subject = "Automation sample"
.Importance = IMPORTANCENORMAL
.Body = "This is easy!"
.Attachments.Add("c:\mydir\sample.txt") && Note that the fully qualified path and file is required.