Results 1 to 9 of 9
  1. #1
    New Lounger
    Join Date
    Oct 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Copying Entire E-Mail (Outlook )

    I have to copy my e-mails and journal entries from outllok into a third party company specific application. I have not found a way to copy (Ctrl C) the entire (header - i.e. to, from, subject, date) AND the text of the e-mail or journal entry so that I may then past them into the other app. What I have been doing is scanning the e-mail or journal entry, then OCR, then cut andpaste....but this is a time consuming method.......is there another way of doing this? Thanks!!!

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Copying Entire E-Mail (Outlook )

    Have you tried "File save as" txt file and then insert the txt file in the third party program?

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Copying Entire E-Mail (Outlook )

    You can't be the only person who has this problem... is there no automation to aid in the copying? Many applications are integrated with Outlook and can read the message information directly. If this does not yet exist for your application, perhaps check with the publisher or developer to see whether it can be added. Sounds as though the case could be made that the cost would be more than justified!

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Entire E-Mail (Outlook )

    Using the basic instructions in MSKB 127156 you can install a generic text-only printer that will allow you to print to a text file.

    It does make a bit of a mess with the header by including some 'non-printable' characters and extra spaces, so is not ideal, but the body of the message - as long as the message is in Plain Text format - seems to come out intact. (You can change the format of the message via Edit > Edit message then Format > Plain Text).

    Not a perfect method, but may give you or someone else an idea.

    Alternatively, something like e-print would appear to allow you to print to a .doc file - I haven't tried it so don't know if it would work. They do do a free trial though...

  5. #5
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Entire E-Mail (Outlook )

    The past few daze, I've been trying to find a way to grab all the internet headers.

    Due to the $%#^%#% Outlook Security crap, one cannot do this via VB/VBA without getting a security warning message.

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Copying Entire E-Mail (Outlook )

    Use Outlook Redemption. Code is like so if you want an array of headers:

    Dim oMsg As Outlook.MailItem, utils As Object, strHeaders() As String
    Set oMsg = ActiveExplorer.Selection(1) ' test with first selected message in current folder
    Set utils = New redemption.MAPIUtils ' or CreateObject("Redemption.MAPIUtils")
    Const PrInternetHeaders = &H7D001E
    strHeaders = Split(utils.HrGetOneProp(oMsg.MAPIOBJECT, PrInternetHeaders), vbCrLf)
    utils.CleanUp ' critical!
    ...
    If Not (utils Is Nothing) Then Set utils = Nothing
    If Not (oMsg Is Nothing) Then Set oMsg = Nothing

  7. #7
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Entire E-Mail (Outlook )

    I knew about Redemption, but not everybody is willing to install such a critter, so I would not be able to distribute my critter.

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Copying Entire E-Mail (Outlook )

    Does CDO also set off the security alarm? See How to access SMTP headers of a message using CDO (1.x).

    Redemption is a shortcut to Extended MAPI. Maybe you will need to go directly to the APIs (see Messaging API (MAPI) SDK Documentation)? I've heard it's a bit complicated, and I haven't ventured there myself. Sue Mosher's OutlookCode site has some links (see MAPI in Outlook/Exchange Development).

  9. #9
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Entire E-Mail (Outlook )

    Ayup, CDO sets it off, even in a "trusted" COM add-in.

    I've spent much of the past few daze researching this at slipstick and outlookcode.

    In addition, certain hgtings are not supported via VB/VBA but are in C/C++.
    But I saw a statement that a .NET DLL is not considered trusted by outlook, so I cannot use C++ in .NET.

    I'm going to try using SendMessage to respond to the warning message.

Posting Permissions

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