MAPI and attachments
Posted on 2002-06-11
I've written a VB6 program that creates a compressed and encrypted ascii file that needs to be e-mailed out. The program is running on a PC with Windows NT Workstation and Outlook98.
Basically, on the first attempt to send the email (with the option to view msg first) I get an error message saying "Could not open one or more attachments". The email is displayed, but has no attachment. Strangely enough, if you manually attach the file and send it, when the e-mail arrives at its destination there are two copies of the file attached.
If I then restart the program and attempt to generate another e-mail it all works fine, no error messages or anything.
Any help would be gratefully received!