I am trying to send an attachment using JavaScript in Kony Studio version 5 (the point of this is to provide an email with a vCard Contact that can be read on an iPhone or Android device).
Unfortunately the documentation is rather scant and I have not been able to get it to work. Here is what I am trying:
var attachmentBody = "this would be the vCard contact as simple text!";
var attachments = { "mimetype" : "text/vcard", "attachment" : attachmentBody };
var msgBody = "Hello from the message body...";
kony.phone.openEmail(to, cc, bcc, sub, msgBody, false, attachments);
This does NOT provide an attachment at all. :(
- List item
- Does anyone have any experience with using attachments?
- Does anyone have a code sample of how to use one from Kony using JavaScript?
- If not, does anyone have a sample of FFI that might work?
Just a call out to the folks on this forum: this was answered on the Kony forums under this response: http://developer.kony.com/konyforum/viewtopic.php?id=3900