Mapi Attachment method WriteToFile throws exception ...
Rudy Schockaert
rudy.schockaert at pandora.be
Tue Jun 24 16:34:31 EDT 2003
Peter Curran wrote:
> Answering my own thread here in case someone else is interested. For
> some reason CDO doesn't support what I was trying to do through MAPI,
> or there's a bug or something, so I ended up using the Outlook object
> model instead of the MAPI one.
>
Searching the MSDN database ( http://msdn.microsoft.com ) learns the
following:
The 80004005 error message indicates that your data cannot be accessed.
This error can be paraphrased as "I could not access your data for some
reason."
This could mean a lot of things (corrupt data in your mailbox for
example). What I suggest you to do is print out the subject and the
folder of the mail your accessing and then examine the mail with another
tool like OutlookSpy (try google) to find out what's wrong with it.
Rudy
More information about the Python-list
mailing list