scott said:
Your software? Does your software send mails to the user's mailbox? Or
is your server using MAPI to load whatever is the current default e-mail
client, like Outlook? Or does it run as an add-on or plug-in to Outlook
which means it can't do anything until it get loaded as Outlook loads?
I don't want outlook to launch
Then use a different e-mail program.
Outlooks launches the complete program
So does Word, and IE, and so does every other application. The
*program* must completely load to run. It may call functions/methods
within DLLs or call other programs but obviously the program that you
want to use has to load for you to use it. Nothing runs unless it loads
into memory.
I would like it to only show the send window not launch the program.
And what program is going to paint the send window? Outlook, that's
what. So Outlook does have to load to show the send window. Like I
said, it isn't that Outlook is loading that is your problem. You just
don't want to see the UI for Outlook.
I don't know how your software works to send mails to Outlook or to use
the MAPI or to run as a plug-in. You never mentioned how your software
manages to "touch" Outlook. Outlook can be loaded but not shows its UI
by, for example, using a mailto:// link that describes the recipient,
Subject, and body. This will only show the compose window from
Outlook - but Outlook is *still* completely loading into memory (go look
in Task Manager). However, programatically using Outlook to send mails
or using the mailto:// link without outlook.exe already running means
the new mail item gets added to Outlook but it won't get sent to Outlook
until the next time that you load Outlook (which means its UI will
show). That is because after you use the compose window which was all
that Outlook showed, Outlook is then exited after that compose window
closes so there is no longer an instance of outlook.exe to use to send
the mail. Without a program loaded, the program can't do its functions.
While it is possible to show the compose window by using the mailto://
URL or perhaps programmatically through MAPI, Outlook is still loading.
Just because it doesn't show all of its UI doesn't mean that it isn't
loaded. Nothing runs unless it loads into memory. Since how your
software manages to use Outlook has remained a mystery to everyone but
you, no one can give details in a reply because they don't know what
your software does. If you are programmatically calling Outlook from
your software via MAPI, you might get better answers in a programming or
MAPI group since this group is to address Outlook as a client program.
There is some programming wizards over at
www.outlookcode.com.