Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access Outlook's options.
Message
From
22/11/2002 09:57:16
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00725382
Message ID:
00725758
Views:
8
Nevermind,

I found it,

I'm posting it in case someone would eventually need this :

loWSH = CREATEOBJECT("wscript.shell")
RegVal = loWSH.RegRead("HKEY_USERS\.Default\Software\Microsoft\Office\9.0\Outlook\Options\Mail\Send Mail Immediately")

*** Have outlook send immediately
loWSH.RegWrite("HKEY_USERS\.Default\Software\Microsoft\Office\9.0\Outlook\Options\Mail\Send Mail Immediately", 1)

*** Make the setting the same as when we got in.
loWSH.RegWrite("HKEY_USERS\.Default\Software\Microsoft\Office\9.0\Outlook\Options\Mail\Send Mail Immediately", @RegVal)


>Hi there,
>
>I'm playing around with outlook to send emails from our applications. I got all the nitty gritty down but now I'm facing the following situation :
>
>the email is staying in the Outbox. That is, if the "Send immediately when connected" option isn't checked out. It works perfect if send immediately when connected is checked [ in Tools>Options ].
>
>1- I'd like to get the checkbox state.
>2- programmaticaly check it so the email actually gets sent when I issue oMailItem.send()
>3- Finaly put back the checkbox in the state it previously was.
>
>
>I'd be glad to here what you guys [and gals] have to say about that. Is that something that is even possible???
>
>
>TIA
>
>Yanick
Previous
Reply
Map
View

Click here to load this message in the networking platform