Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I control outlook messages when sending email
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
How do I control outlook messages when sending email
Divers
Thread ID:
00880675
Message ID:
00880675
Vues:
80
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform