Thanks CMM. Now the inevitable follow ups.
1. I'm dismayed that I can't find info on the syntax of the MAPI
commands. For instance, when typing in MAPIMessages1.send( it says it
takes "vDialog as object" but I have no idea what that means. In vb
help I looked for mapi and only found mapimagecoordinates method so info
is not there.
2. You had noted in your code to leave out MAPIMessages1.send to keep
the window open and in my mind MAPIMessages1.send would send the email
so it seemed obvious to me that if I didn't send it it would still be on
the screen waiting for me to send it. So my focus on finding out how to
leave it on the screen was centered on signon or compose where I thought
maybe something had to be set to visible. Anyway,
MAPIMessages1.send(true) works. Even with signoff and newsession=false
still in the program. I guess these lines are the program severing ties
with the message it just created and left on the screen? Doesn't matter
it works. Then again I'm just the kinda person who likes to know why.
3. An interesting note. When I tested MAPIMessages1.send(true) I was
not given the warning that another program was trying to send a message!
But I am if I don't have the true in it. So I'd assume it must only
warn if the message is actually being send w/o my knowledge.
Lastly just wanted to say that I am looking for the
MAPIMessages1.send(true) functionality and relieved it didn't cause any
warnings. If it had caused a warning I was going to say Windows
Explorer's Send To / Mail Recipient doesn't cause warnings -- how'd they
do that. But since it didn't this and that work the same and all's well.
Your pretty good at this. Perhaps you'd care to make a brief comment on
system.web.mail (VS2003) and system.net.mail (VS2005). I came across
them while working on this. I'm not sure what exactly they are. I
expect just other ways of doing the same thing w/o the com component.
I'm not planning to change to them now mind you. Just still curious.
Do you know anything about them?
Again, Thank you.
cj
CMM wrote:
Also, MAPIMessages1.Send(True)
might fail unless you call
MAPIMessages1.ResolveName()
Right after setting the recipient
Sorry I left that out.
Also, re the Thunderbird thing.... yeah, this technique will probably
trigger Object Model guards.... it does so for Outlook and I don't why it
wouldn't do the same for Mozilla.