I have created a app with sends of mails with a form. It works fine with Gmail. But if I choose Outlook, the field Text appears empty, while the subject and address appears with text.
Why does that outlook?
private void sendMail(String[] address, String subject, String text) {
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setData(Uri.parse("mailto:"));
emailIntent.putExtra(Intent.EXTRA_EMAIL, address);
emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(text));
emailIntent.setType("message/rfc822");
startActivity(Intent.createChooser(emailIntent, "Email "));
}
My problem is solved. I have deleted Html.fromHtml(...)
and it works fine.