General information
Category:
COM/DCOM and OLE Automation
Title:
Attach files with Redemption library
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only