![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CPAO: object reference not set to an instance of an object | Caroline | Outlook - Calandaring | 2 | November 29th 08 05:32 AM |
still cannot retrieve | VUMAMKOSI ANGELA | Outlook Express | 3 | August 23rd 07 04:11 AM |
Why does the Address property of the Recipient object in the Outlook object model look funny? | Omatase | Outlook - General Queries | 2 | July 13th 07 10:09 PM |
Object reference not set to an instance of an object | [email protected] | Outlook - General Queries | 0 | May 17th 07 08:40 AM |
How to retrieve a sent message | Al & Sharon | Outlook Express | 2 | February 8th 06 03:48 AM |