A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to retrieve IMAPISupport (LPMAPISUP) object



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 2nd 09, 11:04 AM posted to microsoft.public.outlook.program_forms
Nikhil Sharma
external usenet poster
 
Posts: 4
Default 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
Ads
  #2  
Old January 2nd 09, 06:13 PM posted to microsoft.public.outlook.program_forms
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 10:32 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-2025 Outlook Banter.
The comments are property of their posters.