Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attach files with Redemption library
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Attach files with Redemption library
Divers
Thread ID:
00683511
Message ID:
00683511
Vues:
61
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
Fil
Voir

Click here to load this message in the networking platform