Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   How to retrieve IMAPISupport (LPMAPISUP) object (http://www.outlookbanter.com/outlook-using-forms/83880-how-retrieve-imapisupport-lpmapisup-object.html)

Nikhil Sharma January 2nd 09 11:04 AM

How to retrieve IMAPISupport (LPMAPISUP) object
 
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

Dmitry Streblechenko January 2nd 09 06:13 PM

How to retrieve IMAPISupport (LPMAPISUP) object
 
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
-
"Nikhil Sharma" wrote in message
...
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





All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com