Great deano! Glad it’s working for you. Can you tell us, when you open the email does the attachment appear in-line as an image or as a bunch of nonsense text? Have you tried it with two images attached instead of just one (if that’s appropriate for your app)?
Joshua, I just tested the sample app “Networking/ComposeMailSMS” and… it works perfectly on my Nook! Which is encouraging, I think. The difference I see between the code in the sample and my own code is that I’m grabbing my images from a folder inside baseDir=system.DocumentsDirectory while the sample is grabbing images from the root of baseDir=system.ResourceDirectory. I’ve also tried using jpgs, and forming the email as text based rather than html based, but with the same results.
So, currently, on Nook, using my code, I can attach only one image to an email and it comes into the email client looking like garbage text rather than a nice, inline graphic. If I attempt to attach two or more images then none of them is actually attached to the email and none get sent. And to answer your question, No, I’m not deleting the images after I send the email.
I guess one thing I can try is to pull the stored images out of the subfolder they are in put them in the root of the documents directory. If that doesn’t fix things then maybe the problem is with the images simply being in the Documents directory. I’m curious if deano is seeing any of the same issues I am since it sounds like he is also using the Documents directory to store the images.
EDIT: Moving the images out of the subfolder didn’t work. Same problems. I then did a test with my own code where, instead of using the images from the documents directory I used a couple images in the resources directory and… it worked! So it seems like nook is having problems translating images in the documents directory for use in email. Joshua, is there anything else I can test or provide you to get this resolved? I’m rapidly approaching my deadline. I do appreciate your time on this issue!
EDIT 2: See my reply below, my problem is solved and it had nothing to do with the documents directory. It was spaces in file names that was the culprit.
[import]uid: 9422 topic_id: 19798 reply_id: 134469[/import]
