I need to send mail with image attached with that ,the html content .
I can able to attach image but can't able to send html content. here
is my code
final Intent emailIntent = new
Intent(android.content.Intent.ACTION_SEND);
emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
emailIntent.setType("image/jpg");
//emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new
String[]{""});
// emailIntent.putExtra(android.content.Intent.EXTRA_CC, new
String[]{""});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Record
about Wounds");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
Html.fromHtml(Body));
emailIntent.putExtra(Intent.EXTRA_STREAM,url);
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment