Sign in to follow this  
Followers 0
stamandster

Convert MSG to EML files

7 posts in this topic

I'm trying to get this working but my limited vb is hindering my abilities here.

DIM $Session = ObjCreate("Redemption.RDOSession")
DIM $Msg = $Session.GetMessageFromMsgFile("D:\Save Attachments\My Saved Email.msg", true)
$Msg.Import("D:\Save Attachments\My Saved Email.eml", 1024)
$Msg.Save

I don't know what I'm doing wrong. Any help would be appreciated.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

So you are trying to convert an existing .msg file to a .eml file? What happens when you run the code above? Do you receive any errors? I can tell just looking at your code that it's not going to work. You do not want to use the import function to convert a .msg. You should check out the API documentation to figure out how to use the object's methods http://www.dimastr.com/redemption/. My guess is that you would want to do something like this:

DIM $Session = ObjCreate("Redemption.RDOSession")
DIM $Msg = $Session.GetMessageFromMsgFile("D:\Save Attachments\My Saved Email.msg")
$Msg.SaveAs("D:\Save Attachments\My Saved Email.eml", 1024)
Edited by zorphnog

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

So you are trying to convert an existing .msg file to a .eml file? What happens when you run the code above? Do you receive any errors? I can tell just looking at your code that it's not going to work. You do not want to use the import function to convert a .msg. You should check out the API documentation to figure out how to use the object's methods http://www.dimastr.com/redemption/. My guess is that you would want to do something like this:

DIM $Session = ObjCreate("Redemption.RDOSession")
DIM $Msg = $Session.GetMessageFromMsgFile("D:\Save Attachments\My Saved Email.msg")
$Msg.SaveAs("D:\Save Attachments\My Saved Email.eml", 1024)

I see... I wish there was a way to do this without having to use redemption. Thanks for the help!

Edited by kickarse

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try this <snip> it can also convert your outlook messages to many other formats also.

Edited by Melba23
Removed URL

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

stargatefan,

No advertising of external payware products please. :)

M23

Edit: And I see this is the second time - one more and you will be removed from the community. :naughty:

Edited by Melba23

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Carefully transfer MSG file database in EML format through eSoftTools <snip> software. This is the best solution enables to export data from MSG file to EML file in seconds. It works for MSG file conversion into EML format against any data loss.

<snip>

 

Edit: Removed links

 

 

 

Edited by JLogan3o13

Share this post


Link to post
Share on other sites

@prokasou did you bother to read the Moderator's post directly above your own?? If we're telling others not to advertise such products, why did you think it would be a good idea for you to post them? Please do not do so again.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0