I am using mergPopActivity external to attach an image to an email or share it via social sites. This works correctly and opens the email application, but I get an error "Permission denied for the attachment" when sending the email.
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 the last image of card "sendpostcard" to url ("binfile:"&specialFolderPath("documents")&"/postcardimage.jpg") as jpeg
put specialFolderPath("documents")&"/postcardimage.jpg" into tImage
mergPopActivity tText,tImage,tUrl
answer the result
--answer it
catch e
--answer e
end try
Sevak