Jump to content
Sign in to follow this  
stamandster

Convert MSG to EML files

Recommended Posts

stamandster

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
zorphnog

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
stamandster

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
stargatefan

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
Melba23

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
prokasou

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
JLogan3o13

@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
dariush12

There are multiple solution available for converting MSG to EML file format. You can google this solution. Last time I used  a solution for same issue and got great result with this MSG to EML tool. I will recommend you to download this  software from here <link removed>

Edited by JLogan3o13
People can't read, apparently

Share this post


Link to post
Share on other sites
JLogan3o13

@dariush12, what part of this sentence, now typed multiple times in this thread, confuses you? :huh2:

Quote

No advertising of external payware products

 


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

Share this post


Link to post
Share on other sites
gruntydatsun

I am happy for to use Extreme CyberYOLO2000 Email Converter to my email converted....   very niice.... ;)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.