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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

retreive sent message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 23rd 06, 05:26 PM posted to microsoft.public.outlook.program_vba
kappe79
external usenet poster
 
Posts: 5
Default retreive sent message

Hi,
I'm writing a little program in vb and I have a problem with sent
messages.
In my code i use this command:

reply = selectedmail.Reply
reply.Display(True)

After that the user can answer to the selected mail throught outlook.
The problem is that, after the user has sent the reply, i loose the
connection with the reply mail and so i' can't retreive, i.e., the body
and the other properties .
Is there a way to keep an instance of the mail after it has been sent?

many thanks!

  #2  
Old August 23rd 06, 07:01 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default retreive sent message

When a message is sent, it must be immediately dereferenced since it twill
be handed over to a transport provider that will submit the message and move
it to the Sent Items folder. The sent message in the Sent Items folder is
physically different message from the one you had before.
You can either search for that message in the Sent Items folder based on,
for example, a custom user property that you can set before calling Display.
Or you can trap the MailItem.Sent event (not to be confused with the Send
method) and access all the necessary properties in the event handler. Thee
vent handler is called after teh user hits the Send button but before it is
actually sent.

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

"kappe79" wrote in message
ups.com...
Hi,
I'm writing a little program in vb and I have a problem with sent
messages.
In my code i use this command:

reply = selectedmail.Reply
reply.Display(True)

After that the user can answer to the selected mail throught outlook.
The problem is that, after the user has sent the reply, i loose the
connection with the reply mail and so i' can't retreive, i.e., the body
and the other properties .
Is there a way to keep an instance of the mail after it has been sent?

many thanks!



 




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
How do I retreive a mistakenly deleted address book? Louis La Mont Outlook - Using Contacts 2 August 1st 06 05:09 AM
How can I retreive contacts from Office 2003 trial. MarciaM Outlook - Using Contacts 0 July 4th 06 02:14 AM
Unable to retreive data files PDC Outlook - Installation 1 June 5th 06 11:41 PM
is there a way to retreive deleted contacts t'ee Outlook - Using Contacts 2 March 24th 06 09:05 AM
how do i retreive mail from my other outlook address Stranger Outlook - Installation 1 February 12th 06 10:41 AM


All times are GMT +1. The time now is 07:04 AM.


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.