Android Question email object attachment file location

JesseW

Active Member
Licensed User
Longtime User
I am stuck. I have an app on the market with no permissions that uses the email object. it builds an html page as the body, then starts the email page as a new activity using htmlintent. recently, android has changed, and now the only html tag that works is <br> (that I can find). even simple text formatting like <bold> have ceased to work.

so as a work around, I thought I'd save the page as an .html file and pass the filename as an attachment, but the only way I can get it to work is using external storage.

erel stated in may 2013 in another thread that you cannot save non-private files to the internal storage. this means to me that its now become impossible to send html content in any way without using permissions.

I'm curious why there is an htmlintent if it will not allow you to use html in it.

there has to be a way. help???
 

DonManfred

Expert
Licensed User
Longtime User
Dont use a intent. Send the mail with the smtp object by yourself (using yours or the customers credentials (you need to ask the user to enter them)).
 
Upvote 0

JesseW

Active Member
Licensed User
Longtime User
I will look into it. but from what I understand, its all going to change in android 7 where you can't access files by path/name any longer, so it'd be a short term solution at best.

I wished the phone email object worked
 
Upvote 0
Top