I’ve spent some time testing this today and it’s working as expected.
local options = { to = { "",}, subject = "Check out this PDF!", body = "", attachment = { { baseDir=system.ResourceDirectory, filename="myfile.pdf", type="application/pdf" }, }, } native.showPopup("mail", options)
The PDF I put in my folder with my main.lua came through loud and clear in the email I got. The one thing I noticed is that the attachment was a tiny square. This was with 2014.2189.
For the code that came with the original bug report, it was trying to do a display.save() to generate the image. For some reason those files also show with a tiny square, but using either a type of “image/png” or “image/jpeg” worked. For an image from my camera that I dropped in the Resource folder showed the thumbnail as expected.
Rob