The application has a button when you click on which the text is sent to the specified email, how can you send this message so that it appears in html format?
1 answer
Found a solution to this problem here.
final Intent shareIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:")); shareIntent.putExtra(Intent.EXTRA_SUBJECT, "The Subject"); shareIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(new StringBuilder() .append("<p><b>Some Content</b></p>") .append("<small><p>More content</p></small>") .toString())); |