Skip to content Skip to sidebar Skip to footer

How To Send A Picture Via Email In Android, Previewed But Not Attached..?

I want to send a picture preview in my mail Intent. I dont want to attach it, i just want it to be shown. This is my intent: String textToSend = getString(R.string.mailHi)+'

Solution 1:

As far as I understood your problem, you want to place the image inside the mail with other text. In the words of Email protocol it's called an INLINE Attachment.

You would not be able to do this with intents as none of the email clients installed on the device supports creating html messages.

If it's really a core part of your app, you should consider a third party api to do this. One of the such library is JavaMail. You would be able to send html messages through this library but will take some time in setting up.

Here's a link that may give you some hint, how it's done.

Solution 2:

Then you need to send a HTML generated email afaik.

Post a Comment for "How To Send A Picture Via Email In Android, Previewed But Not Attached..?"