Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
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.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement