General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only