PDA

Click to See Complete Forum and Search --> : recall message


v_gyku
Sep 23rd, 2005, 04:42 AM
I am starting with a program for recalling a message from outlook.

i.e. :You can retrieve a sent email message before the addressee has opened it.

If anyone have any idea or links plz tell me.

v_gyku
Sep 23rd, 2005, 07:45 AM
I am getting all the sentmessages from outlook by this:

Dim oSentFolder As Object
Set oSentFolder = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail)



Now for each sent message i have given read reciept request, but how will i come to know that mail have been read.

i.e.
For Each Sentmail In oSentFolder.Items
if sentitem.-----?----- then
delete the message
end if
next

RobDog888
Sep 24th, 2005, 10:58 AM
A Read Receipt is optional for the receiver to either send confirmation back to you or Deny sending confirmation. If they confirm then you will receive an email back from them stating that it was Read.

v_gyku
Sep 26th, 2005, 07:41 AM
is there any other way to know recepient have read or not my message?

if rec. has already read my mail then i will not send recall message to him.....
but if he has not read my mail then i will send him a recall mail and if he opens recall mail before original mail then original mail should get deleted from his inbox.

RobDog888
Sep 26th, 2005, 11:48 AM
As I have stated, you can only tell if the receipient has read your email by Requesting a Read Receipt. Now if the receipient chooses not to confirm then there is nothing you can do other then give the person a call.

v_gyku
Sep 27th, 2005, 04:12 AM
We can do this in outlook.

OPen sent mail.... goto actions..........recall message....

So i think thre has to be some way to do this using vba.

JustinLabenne
Sep 27th, 2005, 07:08 AM
v_gyku, you would have to check all the Read-Reciepts you get back and test each from your list of people you sent mails to, and generate a list from there, then send out recalls accordingly. Have I ever heard of such a thing being done code wise, uh...no.

I have to agree with RobDog, probably a longshot.

RobDog888
Sep 27th, 2005, 10:13 AM
Both you and the receipient of the email message MUST be using Exchange Server. You can not recall a message from someone using an POP3 email account. So since its still only at best minimal chances, its not possible.

JustinLabenne
Sep 27th, 2005, 08:56 PM
Agreed. And why would anyone want to do this by code anyway when the method of recalling is pretty easy manually (if it is really considered manual)

v_gyku
Sep 29th, 2005, 06:10 AM
I search a lot and i got one possible way.... I want to share it with u... (Is it possible?)

by using id of the toolbarbutton for recall i can execute recall message button of outlook......

RobDog888
Sep 29th, 2005, 09:18 AM
You need to use Outlook with Exchange Server. You must be connected to a functioning Exchange Server mailbox.

Also, you can not use it if...
• The recipient is not using Outlook.
• The recipient is not logged on to the mail service provider.
• The message has been moved from the Inbox.
• The message has been read.This includes viewing the message with the Preview Pane so that the message is flagged as Read.
• The message has been deleted.

v_gyku
Oct 15th, 2005, 01:04 AM
Hi Gurus !

Some developement in my code for recalling a message.

I am selecting sent message from a listview on a form.
I am able to open the selected message and click recall message button for the selected message.

Now dialog box is coming asking for delete unread copies ............

So i want to access this dialog box programatically.. so that user dont have to do anything with actual outlook.

When the user selects recall this message on my form i should be able to click options in this dialog box programatically....

Robdog what u say? Is it possible?
Thanks...

RobDog888
Oct 16th, 2005, 01:23 PM
Not without writting C++ code or a very sloppy ActiveX workaround because once you .Execute the menu item to perform the recal, the thread is haulted until control is returned back to your app/add-in. You would need to create an out of process ActiveX EXE to hook the dialog window and use APIs to make your selections and click the button.