Information générale
Catégorie:
COM/DCOM et 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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement