On button click, I want to attach an image from drawable and send an email(from chooser).
My button click works, email chooser opens. For example, Gmail opens and the image is attached. The problem is that the image doesn't have a proper extension. When the email is sent and the receiver downloads the attachment and renames it with .jpg
. It perfectly works then.
I have posted the code below.
I have added the project on GitHub.
The link is https://github.com/TheKushalBhagat/EmailButton. You can download, work on it and please help me with the solution.