![]() |
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'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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |