Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlook object

Status
Not open for further replies.

JudyBarer

Programmer
Jan 13, 2004
23
US
When the user sends a message in Outlook 2003 there is an option not to send the message before a certain time. Can this time be set programatically from within VFP?
Thanks

Judith
 
Judith

I believ you migh be referring to DeferredDeliveryTime

Code:
loOutlook = CREATEOBJECT('outlook.application')
loMail=loOutllok.CreateItem(0)
loMail.DeferredDeliveryTime && Specified the desired time

DeferredDeliveryTime Property


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks for responding.

Where can I find documentation listing all the exposed properties in the outlook object?

Thanks
Judy
 
Other options include a VFP timer event if the app is running or using windows scheduler to run an app that will send the email. With the 2nd option the app does not necessarily have to be a VFP app. It could be a vb-script or just about any other type of app.





Jim Osieczonek
Delta Business Group, LLC
 
Judy,
There are a number of articles on the Office Object model (both 2000 and 2003) on the MS web site, but none specifically on Outlook that I could find with thier search. For some basics using VFP, see the book "Microsoft Office Automation with Visual FoxPro" at
For VB, but easily understood and converted to VFP, check out the book "Microsoft Office Outlook 2003 Inside Out" at
You can also "explore" using the object browser in VFP, but it's a bit difficult to guess what things will do this way.

Rick
 
Judith

Where can I find documentation listing all the exposed properties in the outlook object?

If you look at the link I suggested, get to the page, your are on a branch of the tree that describes all the properties of the Outlook object model.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
That's great Mike - I wonder why that didn't come up in my search? Maybe I should have Googled it rather than expecting MS to find it on thier own site!

Rick
 
Judith,

If you run Outlook and then go to the Tools\Macro\Visual Basic Editor menu item (or just press Alt+F11), this should bring up the Visual Basic Editor. Then press F2 which brings up the Object Browser.

Click the drop-down that says <All Libraries> and click on Outlook. This then shows all the properties, events and methods plus constants.

If Outlook isn't in the All libraries drop-down, close the class browser and click on menu item Tools\References. Look for Microsoft Outlook 9.0 Object Library and tick the box beside that item.

Once you have clicked the OK button you can go back to pressing F2 above and continue from there.

I find this a very useful resource.

Hope that helps,

Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top