How to convert a RFC822 (.eml) file to Outlook format (.msg)

D

Dave

I have an event sink that is capturing email based on criteria and saving a
copy. Since it is coming off of SMTP, it is RFC822 format. I would like to
know how to convert those back to the Outlook message format .msg file.
 
D

Dmitry Streblechenko

C++ or Delphi: use IConverterSession (Outlook 2002 or higher must be
installed)
<plug>
..Net/VB/any other language: you can use Redemption:

set Session = CreateObject("Redemption.RDOSession")

set Msg = Session.CreateMessageFromMsgFile("c:\temp\new.msg")

Msg.Import "c:\temp\mime.eml", 1024

Msg.Save



</plug>

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top