J
JahMic
I've seen this written about a bit, but mostly in regards to
redemption.
For the new mail window, I add my own button and button handler,
upon the button click, I do the following:
OOMMailItem.Save
modify some properties via ex-mapi.
MAPIMessage.SaveChanges w/ KEEP_OPEN_READWRITE
MAPIMessage.SubmitMessage
MAPI.FlushQueues
Inspector.close w/ olDiscard.
I gather, doing the submit before the inspector is actually closed,
isn't good, but I'm not sure how to get message otherwise, especially
since as new message it doesn't have an entry id. Any suggestions for
improvement there?
The main issue is that the message is queued in the drafts folder and
not the outbox, causing some annoyment. How can I get this to be
queued in the outbox? I have tried OOMMailItem.move, but that will
just will makes the a copy as the mapi handler doesn't seem to get
know about the change, and the submitted message still goes through
the drafts.
Any help, much appreciated. J
redemption.
For the new mail window, I add my own button and button handler,
upon the button click, I do the following:
OOMMailItem.Save
modify some properties via ex-mapi.
MAPIMessage.SaveChanges w/ KEEP_OPEN_READWRITE
MAPIMessage.SubmitMessage
MAPI.FlushQueues
Inspector.close w/ olDiscard.
I gather, doing the submit before the inspector is actually closed,
isn't good, but I'm not sure how to get message otherwise, especially
since as new message it doesn't have an entry id. Any suggestions for
improvement there?
The main issue is that the message is queued in the drafts folder and
not the outbox, causing some annoyment. How can I get this to be
queued in the outbox? I have tried OOMMailItem.move, but that will
just will makes the a copy as the mapi handler doesn't seem to get
know about the change, and the submitted message still goes through
the drafts.
Any help, much appreciated. J