How to retrieve IMAPISupport (LPMAPISUP) object

  • Thread starter Thread starter Nikhil Sharma
  • Start date Start date
N

Nikhil Sharma

Hi,
I am facing problem while sending mail using MAPI. When i call
IMessage->SubmitMessage, i see it in sent item but still "Send" button is
visible on inspector and it takes time to change it to "Reply" and "Reply
All".
Some where i read that we should call IMAPISupport->PrepareSubmit first and
then IMessage->SubmitMessage.
I reuqest you to please let me know how to retrieve IMAPISupport (LPMAPISUP)
object.
I have IMAPISession and IMessage objects.
Is there any way to get IMAPISupport object from either of these objects? or
is there any solution avaialble to change sent message to non edit mode?

Thanks in advance.

Thanks and Best Regards,
Nikhil Sharma
 
You cannot retrieve IMAPISupport unless your code is a MAPI provider and
even if you did, that would not help you a bit.
After you call IMessage->SubmitMessage(), you must immediately release all
references to that message - the transport provider now owns the message. It
will send the message, then delete the original message and create a new one
(withteh sent flag set) in teh Sent Items folders.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
Back
Top