=> Image Fetch From webservice, => In IPHONE its Work , Its possible in Android ?
I'm trying to send images using HTML in my email body but images are not sending. I don't want to attach image i want Disply Image in Body.
String[] TO = { "" };
String[] CC = { "" };
String text_title = (brand_title + title);
String body = "<!DOCTYPE html><html><body><img src= "IMAGEPATHNAME" >";
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setData(Uri.parse("mailto:"));
emailIntent.setType("text/html");
emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);
emailIntent.putExtra(Intent.EXTRA_CC, CC);
emailIntent.putExtra(Intent.EXTRA_SUBJECT, title);
emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(body));
// emailIntent.putExtra(Intent.EXTRA_STREAM, clickhere);
try {
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
finish();
Log.i("Finished sending email...", "");
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,
"There is no email client installed.", Toast.LENGTH_SHORT)
.show();
Please Help Me Its Possible or not ?
0 comments:
Post a Comment