Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I control outlook messages when sending email
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
How do I control outlook messages when sending email
Miscellaneous
Thread ID:
00880675
Message ID:
00880675
Views:
78
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
Next
Reply
Map
View

Click here to load this message in the networking platform