Sergey
Thanks for the links. I am at a disadvantage with not be able to load stuff on our servers or individuals PC's. State government! What was interesting was the one FAQ the Ed Rauh wrote, except I can't seem to get it to work. The timeout doesn't even happen. All I did was add the script,
RUN /N7 cscript waitforoutlook.vbs
after the createitem and before send. I get no errors but I don't know how to see if the script ran. I guess I will have to have the users deal with the messages.
>There're a few ways to get around Outlook warnings but you should understand implications of each of them:
>- Free Express ClickYes program at
http://www.express-soft.com/mailmate/clickyes.html.
>- Redemption at
http://www.dimastr.com/redemption/home.htm.
>-
How do I avoid the annoying Outlook dialog sending Outlook automation or MAPI email? FAQ #8155
>-
OL2000: Administrator Information About the Outlook E-mail Security Update mskb #
Q263297.
>
>
>>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:
>>
>>* email merged output
>>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