"Unable to read the item" with msg saved using Redemption's SafeMailItem

M

Mat Farabee

I'm saving an Outlook message in .msg format using the Redemption library
(SafeMailItem.SaveAs). The message appears to be saved successfully, but I
get the error
"Unable to read the item" when I try to open it. This problem does *not*
occur when I run the application on my own PC (Win 2000 Professional); it
only occurs when the application is run on the servers (two servers tested,
both Win 2000 Server). The save filenames are "00000001.msg",
"00000002.msg", etc. Code is listed below.

Has anyone encountered this problem before?

- Mat Farabee

Sub SaveMessage(objMessage As MAPI.Message, strSaveAs As String)
' Declarations
Dim objRedMessage As Object
Dim FSO As New Scripting.FileSystemObject

' Save file if it doesn't already exist
If Not FSO.FileExists(strSaveAs) Then
' Create new Redemption SafeMailItem object
Set objRedMessage = New Redemption.SafeMailItem
objRedMessage.Item = objMessage
' Save message
objRedMessage.SaveAs strSaveAs, 3 ' .msg format
End if

' Clean up
Set objRedMessage = Nothing
Set FSO = Nothing
End Sub
 
D

Dmitry Streblechenko \(MVP\)

The current version of Redemption when running on Windows 2000 and up
creates MSG files incompatible with Windows 9x/NT.
Send an e-mail to my private e-mail address if you want an updated version.
Updated version will create MSG files compatible with all versions of
Windows unless the message has a fairly large number of recipients (>100).

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