Hi dchan,
This is what I see when I install and run the Coronalabs test app “ComposeEmailSMS” on a regular Kindle Fire (NOT HD):
- Run app and press “compose Email” button
- given options on how to send email I choose “send with Email”
- The built in email app on Kindle Fire launches and I can see the images as attachments below the text portion of the message. I change the To to my email address, and press ‘send’.
- On my email receiving client (Thunderbird on my iMac) I open the the received email. The attached images, “coronalogo.png” and “email.png” are interpreted as text and so show up as two large blocks of nonsense ASCII text below the main message.
- If I view ‘message source’ of the email in Thunderbird I see that the Content-Type has been changed to “text/html” which explains why the image is being misinterpreted:
[html]
------ULSKIOJEVC01G9F3J03WVM6GRF0RSX
Content-Transfer-Encoding: base64
Content-Type: text/html;
name=“coronalogo.png”
Content-Disposition: attachment;
filename=“coronalogo.png”;
size=70315
iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdp
bj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6
eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEz…
[/html]
This is the same problem I am having with my own app. Also, your app and my own both work correctly on every other device and platform I have tested on, including Kindle Fire HD. Are you sure you are testing on a regular Kindle Fire? To be sure this isn’t something funky with my Kindle Fire I tried sending an email straight from the email app on the Kindle Fire (not going through a Corona app) from the same account to the same account, with. jpg and .png image attachments (some of which even had spaces in the name) and it was successful. On opening the email in Thunderbird the images came through as images. The message source shows “Content-Type: image/jpeg;”.
I feel like I have tested this every way I can to eliminate anything else that might be causing this. I still conclude that any email sent from a Corona app, from a regular Kindle Fire, with image attachments will convert the Content-Type to “text/html”.
Let me know if there’s anything else I can try, though. Thanks for taking a look.
BTW, I can verify that the KindleFire HD bug that started off this thread is fixed with the latest build, so thanks for that!
-Stephen [import]uid: 9422 topic_id: 35695 reply_id: 142962[/import]