How to send HTML email
Posted
by Orsol
on Stack Overflow
See other posts from Stack Overflow
or by Orsol
Published on 2010-01-05T16:44:15Z
Indexed on
2010/04/30
15:37 UTC
Read the original article
Hit count: 275
android
Hi, i found a way to send plain text email using intent:
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/plain");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new
String[]{"[email protected]"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Test");
But I need to send HTML formatted text.
Trying to setType("text/html") doesn't work.
© Stack Overflow or respective owner