Using plugins.mail.receiveMail but just cannot work out how to handle attachments. Using the sample method:
var attachments = msg.getAttachments()
if (attachments != null)
{
for (var j = 0 ; j < attachments.length ; j++)
{
var attachment = attachments[j]
application.output(attachment.getName())
var attachmentDataByteArray = attachment.getData()
//write attachmentDataByteArray to a file…
}
}
But cannot find the attachment files after they’ve been downloaded and (even if I could find them) do not know how to provide the user with a means of opening the attachment.
Could any of the gurus point me in the right direction.
Thanks
Graham Greensall
Worxinfo Ltd
Servoy Developer
Version R2 2.2-build 328
Java version 1.4.2_08-b03 (Windows XP)