Using VFP9 SP1, Outlook 2003 w/MapiLab Advanced security
In Click events I have been using code like
I have recently added lines to try to force the send
With this code in several command button click events, my users are clicking one after another.
? When the command =o=.null. and release o runs, does this "kill" the session I created
? Should I put a timer or a loop to check the sent mail folder somehow before allowing the user to continue
Any tips on how to ensure the mail went out would be appreciated.
Thanks,
wjwjr
In Click events I have been using code like
Code:
o=createobject("outlook.application")
oNameSpace=o.GetNameSpace("MAPI")
oitem=o.createitem(0)
oteim.subject="subject"
oitem.to="email@whatever.com"
oitem.body="body of email"
oitem.send
o=.null.
release o,onamespace,oitem
I have recently added lines to try to force the send
Code:
o=createobject("outlook.application")
oNameSpace=o.GetNameSpace("MAPI")
****added
oExplorer=o.Explorers.add(oNameSpace.folders[1],1)
oitem=o.createitem(0)
oteim.subject="subject"
oitem.to="email@whatever.com"
oitem.body="body of email"
oitem.send
***added
For Each thing IN oNameSpace.syncobjects
oFoo=Thing
oFoo.start
Endfor
o=.null.
release o,onamespace,oitem
With this code in several command button click events, my users are clicking one after another.
? When the command =o=.null. and release o runs, does this "kill" the session I created
? Should I put a timer or a loop to check the sent mail folder somehow before allowing the user to continue
Any tips on how to ensure the mail went out would be appreciated.
Thanks,
wjwjr