Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Email using Outlook
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Sending Email using Outlook
Divers
Thread ID:
00587012
Message ID:
00587012
Vues:
60
I know this isn't really a main stream VFP problem, but I sure someone must be aware of the problem or at least come across the problem. Below is a procedure I'm using to send email,


PROCEDURE SendEmail
PARAMETERS pToWhom, pTitle, pBody
oOutlook = GetObject(,"Outlook.Application")
oMailItem = oOutlook.CreateItem(0)
oMailItem.To = pToWhom
oMailItem.Subject = pTitle
oMailItem.Body = pBody
oMailItem.Save()
oMailItem.Send()
Release.oMailItem
Release.oOutlook
RETURN



however I'm each time I run this code with a vaild email I get an Outlook notification message saying :-

"A program is trying to automatically send email on your behalf. Do you want to allow this? If this unexpected, it maybe a virus and you should choose "No"

Is there any way of turning off this message so that email can be sent?
Regards

Tony Millard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform