I have automated sending single emails from my vfp6 app using automation. I am getting 2 messages that I am concerned will confuse the user.
1. A program is trying to access email address's you have stored in Outlook. Do you want to allow this?" Allow access for ??minutes "Yes/No/Help"
I check the access box and set for 1 minute, click yes...next message pops
2. A program is trying to automatically send email on your behalf. do you want to allow this? "Yes/No/Help"
I click yes and the email goes to the intended receipient, like it should.
I cannot find and pem's to control this behavior. There should be settings I can temporarily disable to allow the email to be sent without user interaction. Any suggestions? Code below:
oOutLook = getobject(,"Outlook.Application")
oMail = oOutlook.CreateItem(0)
WITH oMail
.recipients.add(lcAddress)
.subject = lcSubject
.body = lcBody
.save()
.attachments.add(ThisForm.p_Memo_Location)
.save()
.send()
ENDWITH
Thanks, Chuck
Extreme Programming = Plan -> Design -> Code -> Test