Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation email with Outlook
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Automation email with Outlook
Miscellaneous
Thread ID:
00669137
Message ID:
00669137
Views:
43
Hi All,

Below is the code I use to send our email newsletter to 2,000 customers. This works fine with Win98 and Outlook 2000.

It is not okay when I run it on a WinXP pc, it stops on each send and asks if you really want to send this email.

Is there a way around this security setting somehow?

Thanks,

Jim

***************************************************
#define olfolderdisplaynormal 0
looutlook = createobject("outlook.application")
lonamespace = looutlook.getnamespace("mapi")
scan
wait window at 25,50 "Please be patient..." nowait
memailaddress = e_mail
loemailitem = looutlook.createitem(0)
loemailitem.to = memailaddress
loemailitem.subject = .hstxtsubject.value
loemailitem.body = .hsedtbody.value
loemailitem.send()
endscan
wait clear
looutlook = .null.
release looutlook
***************************************************
Next
Reply
Map
View

Click here to load this message in the networking platform