Problem adding attachments

  • Thread starter Thread starter Peter Wullems
  • Start date Start date
P

Peter Wullems

I use XP Pro with service pack 2 installed and Office 2003 (and Outlook) all
of which is kept fully up to date with Automatic updates.

I use C# to read mail received, generate emails responses for certain
messages and content and add attachments, and then save to the Outlook
Drafts folder where I can review the emails before deciding if to send them.

The app is a console application which is run at defined intervals. On a
daily basis it can generate up to about 200 emails.

Part way through a recent run, I got the following error:
Can't create file: filename.doc. Right-click the folder you want to create
the file in, and then click Properties on the shortcut menu to check your
permissions for the folder.

Now even if I manually open an email and want to attach a file, I get the
same issue.

The question is where is the folder for a MailItem when it has not yet been
placed in a folder? That always presupposes that the message is not
misleading.

As a workaround I copied the contents of the file to a new file and I had no
problems attaching that file. I checked the permissions for the original
file and they are unrestricted. Something somewhere must be marking this
file as a rogue file not to be attached.

Where? How? How can I undo that?

cheers

Peter Wullems
 
A further comment.

The exact number of times the program succeeded in using the attachment file is 99 times. It fails on the 100th mailItem attempting to add an attachment. There is nowhere that I can find where this information is stored including registry.

Questions:
a.. Why 100. The number is too pat to be a coincidence.
b.. What mechanism is it that stores the filenames?
c.. Can this information be changed.
d.. Is it controlled in any way.
e.. What degree of permanence is there to the blocking of individual files that can no longer be attached.
f.. What relationship is there to XP Service Pack 2 security enhancements.
cheers

Peter
 

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

Back
Top