Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Attach files with Redemption library
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Attach files with Redemption library
Miscellaneous
Thread ID:
00683511
Message ID:
00683511
Views:
60
Hello. I've downloaded the redemption dll, I've successfully written a small program to create an email message and send it, all automatically, of course. When using their example code to attach a file, though, I received several errors. Here is their example code for attaching a file:

&& add attachment
oAttach = oSafeItem.Attachments.Add("myattach.txt")
&& content type
oAttach.Fields(0x370E001E) = "Attached File"
&&Attachment cid
oAttach.Fields(0x3712001E) = "myattach.txt"
oSafeItem.Save


On the field where I set the content type I get an error:
"Invalid Subscript Reference".

When I commented out the content type and the attachments cid fields, the email was sent but the file within was only 23 bytes and it didn't show up as attached on the receiver’s end. Has anyone sent an email with an attached file via the Redemption dll? Does anyone have insight into this issue?

Thanks.
Reply
Map
View

Click here to load this message in the networking platform