Results 1 to 13 of 13

Thread: recall message

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    recall message

    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.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: recall message

    I am getting all the sentmessages from outlook by this:
    Code:
    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

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: recall message

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: recall message

    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.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: recall message

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: recall message

    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.

  7. #7
    Lively Member JustinLabenne's Avatar
    Join Date
    Jul 2005
    Location
    Ohio
    Posts
    64

    Re: recall message

    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.
    Justin Labenne
    www.jlxl.net

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: recall message

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Lively Member JustinLabenne's Avatar
    Join Date
    Jul 2005
    Location
    Ohio
    Posts
    64

    Re: recall message

    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)
    Justin Labenne
    www.jlxl.net

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: recall message

    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......

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: recall message

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: recall message

    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...

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: recall message

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width