I use mergPopActivity external to attach an image to an email or share it via social sites. This works correctly and opens the applications for sharing image.
I export the image into documents folder, but the external doesn't attach the file to the email, it shows error message "Permisssion denied for the attachment".
I even tried to change the folder for exporting the image, to see if the problem is with finding the documnets folde path. But no, I still got the same error. So I think, the problem isn't with the folder, but in the external itself.
Can you please review the code and let me know if there is any solution to this ?
Code: Select all
try
put "" into tText
put "" into tUrl
export last image of card "sendpostcard" to FILE (specialFolderPath("documents")&"/postcardimage.jpg") as jpeg
put url ("binfile:"&specialFolderPath("documents")&"/postcardimage.jpg") into tImage
mergPopActivity tText,tImage,tUrl
catch e
end try
Sevak