I know I can use the following code to invoke default email client of Android to send email.
In plain text supported email client I need to use "\n"
to make a newline, but in html supported email client I need to use "<br/>"
to make a newline.
How can know what kind of email client supported? Thanks!
Intent emailIntent=new Intent(Intent.ACTION_SEND);
String subject = "Your sms sent by email";
String body = "aa"+"<br/>"+"bb";
String[] extra = new String[]{"aa@gmail.com"};
emailIntent.putExtra(Intent.EXTRA_EMAIL, extra);
emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(Intent.EXTRA_TEXT, body);
emailIntent.setType("message/rfc822");
startActivity(emailIntent);