Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dispaying emails in Outlook
Message
From
20/10/2002 21:23:49
 
 
To
20/10/2002 11:09:13
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00713248
Message ID:
00713380
Views:
28
Hi Alan.

But wouldn't that automatically send the emails?

That depends < s >...It will respect what is set in Tools -> Options. If you have that set to send immediately, it will.

So if you want to continue to save the new e-mails as drafts, you can still do that by invoking the Save() method instead of the send() and modify the code as follows:
oNameSpace = oOutLook.GetNameSpace( 'MAPI' )
oDrafts = oNameSpace.GetDefaultFolder( 16 )
oDrafts.Display()
Then, when you are ready to really send the e-mails, (untested, just a wag) iterate thru the items in the drafts folder and invoke the send() method like so (untested and off the top of my head...)
FOR EACH loItem IN oDrafts.Items
  loItem.Send()
ENDFOR
BTW, will I be seeing you in Reading on November 1?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform