Jacob - save outlook message as .msg file

Hi,
I need to save an outlook mail item as a .msg file using Jacob.
In C# I would use the syntax
mail.SaveAs(savePathAndName, Outlook.OlSaveAsType.olMSG) where 'mail' is an outlook mailitem, the first parameter is a string and the second parameter is a type.
In Jacob I've tried various combinations of
Variant saveResult = Dispatch.call(mailItem, "SaveAs", "Microsoft.Office.Interop.Outlook.OlSaveAsType.olMSG");
with no success
Any ideas?
tvm
RCF

Variant saveResult = Dispatch.call(mailItem, "SaveAs", directory + "newEmailName.msg");
thanks you, i found it because of you :)

Similar Messages

  • Save Outlook message using Java

    Hi, I want to save my outlook message as .msg file. I added a new button to the outlook message toolbar, by clicking on that button it will run a java application that will save the outlook message as .msg file.
    Can any one help me with some suggestions or code samples in java that will save the current active outlook message.
    Thanks in Advance
    Siva

    >
    Hi, I want to save my outlook message as .msg file. I
    added a new button to the outlook message toolbar, byIt sounds like you have already "added a new button.." that does this... or is your question how to make the new button actually do stuff?

  • How to save video messages to a file on Mac?

    How to save video messages to a file on Mac? Please, help. Thank you.Claire

    Claire, I use a Mac w/ the latest copy of Skype and it IS possible to first play the file and then download it.  Steps are available for it but it involves some technical wizardry that can be above some muggles.   Then I found a post where some some VERY bright person made a small downloaded program for the Mac which once the video message has been played recently, you can run this program and download the file for safe keeping ( ALWAYS BACKUP or store it in the cloud for safety )  Kudos are deserved to user alvarop for this! http://community.skype.com/t5/Mac/Video-Message-Exporter-App/m-p/2351609 It worked for me to download a video message that I recently played back.  Let me know if you need any assistance getting it downloaded you can PM me on here and I'll be happy to help with a screenshare. Best Regards,-Shawn G

  • Can no longer save email messages to my files

    Before upgrading to Mavericks, I could open an email message from a client, click Save As, select a folder, then save the message as a text file to the appropriate folder on my hard drive. It seems I can no longer do that. I always get a Mail error message saying "Names longer than 31 characters are not supported on the destination volume."(Even when the name is already shorter than that, I go through the exercise of shortening it.) After doing that, I click Save. Then I get an error saying "Error: Could not save to path...." which, incidentally, goes haywire part of the way through and takes it down a path that is a completely wrong folder for another client. Regardless, it doesn't save.
    I've tried completely renaming the file. I've tried everything I can think of.
    This used to be SO SIMPLE:  Just click Save As, select the appropriate folder, then click Save.
    In Mavericks, do I need to convert this email message into a Word document in order to save it to a folder?

    Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in 10.8 there is only one. If you're running a version older than 10.8, this comment isn't applicable.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder—not just its contents—to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window.
    This action will delete any custom Mail stationery that you have created. If you want to preserve it, ask for instructions.
    If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:
    ~/Library/Containers/com.apple.MailServiceAgent
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Outlook "lock" on .msg files

    I am trying to confirm what I believe to already be true, if someone can confirm with documentation on this issue:
    Users are saving Emails as ".msg", if the email/file is opened Outlook "locks" the file. If the email is closed and re-opened moments later (either by the same user or another on a shared drive) without closing Outlook and the OUTLOOK.exe process ending the user receives error:
    "Microsoft Office Outlook"
    Can't open file: "file location"... The file may not exist, you may not have permission to open it, or it may be open in another program. Right-click the folder that contains the file, and then click Properties to check your permissions for the folder.
    This is obviously not a permissions issue and I have confirmed that is Outlook is "locking" the file by using procmon but I can't convince management that there is "no fix" for this. So here I am asking for anyone to either tell me there is a fix or tell me to find a new profession.
    Thanks in advance!
    Ad CCNA, MCSA: Messaging

    Possible cause: 3rd party Add-ins, not just “Google Desktop Search”
    Resolution: Disable all outlook Add-ins and com Add-ins. If the issue still persists, please check the registry key below; make sure there’s no 3rd party Add-in in it
    HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Client\Extensions
    HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Outlook\Addins
    HKEY_CURRENT_USER\Software\Microsoft\Exchange\Client\Extensions
    HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins
    HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Addins
    Sorry this did not really help with the issue, however, I think it is related to something else.Ad
    CCNA, MCSA: Messaging

  • Right way to reinstall OS 9.2.1-9.2.2 update & SAVE OUTLOOK MESSAGES etc

    I have now an original OS 9.2.1 CD to make the reistallation of the system on a Powerbook G3 (Wallsteet 266 Mhz, HD 4Gb) already equipped with 9.2.2.
    - Once having installed the 9.2.1, it's enough to download the 9.2.2 update I see in 'Apple Support', install it, and that is all?
    - In Mac HD>Applications>Apple Extra on my Powerbook there is a folder 'Mac OS 9.2.2 updating', that contains several elements among which 'Update to Mac OS 9.2.2': I opened it and it seems to be what needs to install 9.2.2. Could have it been left there by the people who previously installed it on the computer? Can I use it directly to reinstall 9.2.2?
    - Of course I will backup all my files, but what to do exactly to save my Outlook mail messages (they are thousands) and my Explorer favourites, and what to do exactly to have them available again, once having reinstalled the system?
    - what to do if I want also to import all messages, addresses, accounts, etc, from the Wallstreet to another Powerbook, either in another Outlook or in Entourage or in Mail?
    Thank you for any help.

    Assuming you mean Outlook Express, Entourage and later OE versions store their messages, etc, in the Microsoft User Data at the top level of your Documents folder.
    Simply copying that folder, making your new installations, copying MSUD back then Restarting will feed the old data to new configuration... (Please remember, MSUD from the new configuration must be Trashed before the old data can be copied back)
    In Explorer use File>Export Favorites to put them somewhere safe before the update, then pull them back with File>Import Favorites…
    When you want also to import all messages, addresses, accounts, etc, to another Powerbook that depends whether you're simply trying to replace what's on the target Mac with the data from the source Mac, or merge two sets of data.
    To simply replace what's on the target Mac with the data from the source Mac, as above copy the entire MSUD…
    To fully merge two Outlook or Entourage data sets is certainly not possible if the source data contains mugshots or user-defined Categories. Mail and iCal might fully Import OE or Entourage messages and Calendar events but I don't believe Address Book will swallow all their contact details, and you may also be thwarted by other things I don't know about.
    Beside the formal Export-Import method, you can drag and drop Entourage messages, complete mail folders, calendar events and contacts into Finder folders.
    Messages and mail folders can then be dragged into any other open Entourage.
    Calendar events become .ICS files and contacts become .VCF cards which will automatically join Entourage on a new host once they're double clicked open…

  • Can't open Outlook msg files

    Hi,
    We are using Windows Phone with Nokia Lumia and we can't open outlook msg files.
    From Desktop, we save Outlook messages into msg format in SharePoint libraries, but When I try to open this message using Internet Explorer with Nokia Lumina, it can't do it. Windows Phone can't open msg files.
    It is this possible? Can't install Outlook client into Windows Phone? Exists any msg reader?
    Thanks

    Hello,
    I am not really sure what that means?
    Did you set it up manually on the sequencer, or did you create it manually on after monitoring?
    Is whats captured the same thing as whats setup when its working?
    Have you compared how it works on a manually setup client vs whats actually configured within your package?
    /Znack

  • Creating .msg file for MS Outlook

    Hi,
    I need to create a ".msg" file, so that some users can click on the message, and it opens up in MS Outlook. Has anybody successfully done this using the JavaMail APIs?
    Using the writeTo method (ie: message.writeTo(fileOut); ), I was able to create a file. However, when I try and open it in Outlook, it won't open. I compared my file to a message that I saved using Outlook, and their msg file has a ton more stuff. It looks like all of the headers are encrypted.
    If anybody has done this, and could provide some input, that would be fantastic!
    Thanks.

    MSG Files:
    Priasoft has several MSG related products. http://www.priasoft.com
    In particular, they have a MSG file parsing library that gives developers access to all the properties of a .msg file, without outlook.
    They also have an export library that works with the MSG library for exporting msg files to other formats, like PDF, TIF, and HTML.
    For PST files, they have a couple of command line tools that allow extraction of messages to MSG, again without requiring outlook, and it supports both ANSI and UNICODE pst files. There is also the reverse, a MSG to PST utility.
    They also have a viewer product that looks very similar to outlook 2003 with regards to the User Interface. The viewer can view, search, print, and export msg files.
    Of recent they released a MSG to XML converter tool. I think the like is http://www.priasoft.com/downloads/msg/installmsg2xml.exe
    Lastly, they just release a free ViewOnly viewer here: http://www.priasoft.com/msgview.exe
    Regards,
    the MSG Guru, Eriq VanBibber
    ALT160 - Do you see me?

  • Saving Email as a .msg file on local machine

    Hi Everyone,
    I have a requirement of reading an email from the INBOX folder and later save it as a .msg file on my local machine. Although, the file is getting created, I am unable to open it. However, when the file is saved as an .eml file, it works fine.
    I have tried saving a .msg file from outlook and opening it, however, the problem is with the email file saved as .msg file using java.
    Any suggestions on fixing this problem.
    Thanks,
    Nitin

    Hi nithin,
    You can achieve this when the client send the message to you in octet streem then the par object contains the message subject as file name along with .msg files . if you store the same you can retrieve by using
    response.setcontenttype("octet-stream")
    and retrieve the stored message in .msg extension. can you pleasse let us know hoe you are capturing the part and storing in PC , I mean which type of part you are trying to open whether the part object content in octet stream or message/RFC822 format. please let me know.

  • Sending and saving mail message with .msg extension

    How can I save the mail message when sending with .msg extension , so that when user click on the saved message it will open in OutLook Express. ?

    I already tried the one u suggest , MimeMessage has a method
    writeTo(OutputStream) which can be used to save the message with .msg extension .... But the main problem arises when trying to open it in OutLook .....
    It gives some error .... I think that it may be because of format .. .msg has binary format while MimeMessage is in another format ....
    is there any way to convert MimeMessage to binary and then save it in .msg file .

  • Can't open *.msg files from Windows

    I am moving from PC to Mac and I used to store my e-mail messages as *.msg files in my hard drive and not Outlook 2011 nor Mail recognizes them so I can't open them, what can I do?

    But what about if I want to view the attachments as well? I have Office for Mac 2011 and I've been trying to open some .msg files from Outlook 2007. I received them as files on a disk, and I was able to open them on my PC at work just fine. However, I can't open them on my Mac. I downloaded a free trial of Mail Raider (and a couple other programs, but none of them worked.) It only opens some of the files. They come out as a mess and the attachments aren't accessible. And the rest of the files just don't open at all, or sometimes it doesn't realize there are attachments. I was able to randomly extract one attachment and a jumbled email message, and that's my only success so far. I used the same method on another email/attachment and got nothing. According to what I've seen on Microsoft blogs/forums, it seems like Outlook 2011 should be able to open these files, so I shouldn't even need another program, right? Please help!

  • Download email on cfpop as msg file

    hello,
    is there any way to download the email message as .msg file (the master file version of the email) when cfpop reterive the email?

    No (.msg is specific to Outlook and it's a binary file format).
    Mack

  • Outlook Add-In Mail Item How to save the mail item (which is in compose mode) as a .msg file in non editable form?

    Hello,
    I am working on an outlook add-in where I have a custom button on the ribbon tab of compose mail item.
    My requirement is to save the mail item currently being composed as a .msg file at a predefined location on click of my custom "Save" button. I am able to do it using "mailItem.SaveAs(...)".
    But my problem is, when I open the .msg file in outlook, it is opened in compose mode but I want to see it as a read-only item. For e.g. exactly the way it looks when I save it after it's sent.
    Could you share any ideas on how to achieve this?
    Thanks,
    Vinay
    -Vinay Pugalia
    If a post answers your question, please click "Mark As Answer" on that post or
    "Vote as Helpful".
    Web : Inkey Solutions
    Blog : My Blog
    Email : Vinay Pugalia

    Strictly speaking you need to *remove* the MSGFLAG_UNSENT bit (=8), not set the MSGFLAG_READ bit, so setting the PR_MESSAGE_FLAGS property to either 0 or 1 will work. Keep in mind that you can remove the MSGFLAG_UNSENT bit only before the message
    is saved for the very first time. If you touch the bit after the message was saved, the message will stay unsent.
    Also note that this may not be what the user wants since the message will become read-only when reopened.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

  • VBA check save Outlook .msg files

    hello guys, how do i check saved msg file on a folder or network share  via VBA  and determine whether it is an Inbox item or a Sent Item?
    Of course, can open the msg file and check whether its an inbox or a sent item.
    But it's ideal only for a few outlook msg files.
    Is there anyway to check save outlook mail files (.msg files) via VBA?
    Like check if it is an inbox or receive msg file then put to receive folder and if it is a sent item put to sent folder.
    Thank you.
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

    Once you save an email to an .msg file you cannot determine what folder it originated from.  However, you'd know it was a sent item by looking at the MailItem.SenderName or .SenderEmailAddress property IF you know the name of the sender.
    Eric Legault (MVP: Outlook;
    About me)
    Outlook Appins: Store social media fields in your Outlook Contacts!
    Co-author, Microsoft Office 2013 Professional Step-By-Step
    Thanks Eric, that's sad to know.
    Wish that there could be some flags or whatever property to check which folder it originates from.
    Can we suggest this thing to MS? :)
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

  • Can I save an email message as .eml file and open it using outlook?

    Hi all,
    I use the following codes to save the received email message as .eml files:
    Session session = (Session)map.get("CURRENT_SESSION");
    //InputStream is = msg.getInputStream();
    MimeMessage mm = new MimeMessage(session, msg.getInputStream());
    String filePath = AttachmentProcess.getInstance().getFilePath(attachmentId);
    String fileName = AttachmentProcess.getInstance().getFileName(attachmentId);
    mm.saveChanges();
    mm.writeTo(new FileOutputStream(new File(filePath, fileName)));
    But when I open it using window live mail, its content looks like this:
    ------_=_NextPart_001_01CA7E32.F3122E40
    Content-Type: text/plain;
    charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    =20
    New interaction from Thomas Lo on assignment "Assignment Enhancement":
    =20
    Interaction body goes here
    =20
    =20
    When this email is sent to [email protected], it will be filed into
    assignment "Assignment Enhancement" automatically.
    Please don't modify this line. [ID: ASIGMT 51]
    ------_=_NextPart_001_01CA7E32.F3122E40
    Content-Type: text/html;
    charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
    xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
    xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
    xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
    xmlns:a=3D"urn:schemas-microsoft-com:office:access" =
    xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
    xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" =
    xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema" =
    xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" =
    xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" =
    xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" =
    xmlns:odc=3D"urn:schemas-microsoft-com:office:odc" =
    xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" =
    xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
    xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" =
    xmlns:rtc=3D"http://microsoft.com/officenet/conferencing" =
    xmlns:D=3D"DAV:" xmlns:Repl=3D"http://schemas.microsoft.com/repl/" =
    xmlns:mt=3D"http://schemas.microsoft.com/sharepoint/soap/meetings/" =
    xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/xml" =
    xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" =
    xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" =
    xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/directory/" =
    xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" =
    xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" =
    xmlns:udc=3D"http://schemas.microsoft.com/data/udc" =
    xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" =
    xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"=
    xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" =
    xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" =
    xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" =
    xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" =
    xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/soap" =
    xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" =
    xmlns:udcp2p=3D"http://schemas.microsoft.com/data/udc/parttopart" =
    xmlns:st=3D"" xmlns=3D"http://www.w3.org/TR/REC-html40"
    xmlns:ns2=3D"http://schemas.microsoft.com/sharepoint/soap/workflow/"
    xmlns:ns3=3D"http://schemas.microsoft.com/office/2006/digsig-setup"
    xmlns:ns4=3D"http://schemas.microsoft.com/office/2006/digsig"
    xmlns:ns5=3D"http://schemas.openxmlformats.org/package/2006/digital-signa=
    ture"
    ------_=_NextPart_001_01CA7E32.F3122E40--
    Can anybody help me ?

    This works now by coping all headers to the new MimeMessage from the coming message.
    But one issue occurs when the email contains attachments.Because all attachment will be display on the email body.
    What happens?

Maybe you are looking for

  • HP ePrint settings

    Hello I have an HP 8500 networked through the router. HP ePrint app worked fine before the update.  I could change printer settings and print using the network or mobile tablet Samsung Samsung S4, S3, S4 mini. After update I am not able to change pri

  • My iPad 4 isn't charging

    My iPad 4 is not charging and won't shut off

  • Performance problem in XI

    We are getting very slow response in XI production server. We are running XI version 3.0 on oracle database version 9.2.0.5.0. HP-Unix version 11 is the platform of our operating system. In this system, we have 8GB RAM. Even when no users are logon t

  • Workflow : To send email to persons who have released the PO

    Dear All, We have configured a Workflow scenario, wherein once a PO is created it goes for approval to a list of employees. Now if any of the employee rejects the PO, the email goes to the person who created the PO. Now the management want that incas

  • Outlook contact not added Email do not show all information i Lync 2013 Client

    I have seen if no Email address is added into contact personen I only get emty Card of user i Lync 2013. When I add Email adr. into contact person and wait a littel then user get all information right i Lync 2013 user Card. IS this right or should it