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