Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Email using Outlook
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00587012
Message ID:
00587049
Views:
27
The only way to turn off this message is to uninstall Oulook and install it again but don't applay security patch that introduced this restriction.

>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?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform