how to embed html in email body ?

by Makrand » Sat, 27 Feb 2010 13:54:24 GMT


Sponsored Links
 Hello

I am trying to send a email by using Intenet, and i am trying to add
HTML page in email body,

but in compose box its showing only HTML code, its not rendering.

so how to add HTML in Email body.

Here is my Java code

Intent sendIntent = new Intent(Intent.ACTION_SEND);
          sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          sendIntent.setType("text/html");
          sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
          sendIntent.putExtra(Intent.EXTRA_SUBJECT,
emailSubject.getText()
                    .toString());
          sendIntent.putExtra(Intent.EXTRA_TEXT, htmlString);
startActivity(Intent.createChooser(sendIntent, "Email"))

the "htmlString" contains my HTML code

Here is my HTML code

html>
<head>
  <meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
  <meta content="width = device-width" name="viewport">
</head>
<body>
<h3>Hello world !!!!!</h3>
</body>
</html>

Please help me !!!!!

--



Other Threads

1. signing cert revocation

Hi,

I just read through the archives and Dianne answered where we
currently are, but I'm
not sure that's a very good place. When signing an app, it appears
that the platform
is doing, essentially, a leap of faith kind of signing key trust ala
SSH. That is, if i've
never seen a key/name binding before, save it in my keystore and never
allow others
using the same name to use my namespace.

That's fine until you have to revoke a key for whatever reason. In my
particular case,
it's because I wanted to clean up the self-signed cert I made with
keytool because
I made mistake in it, but there are *many* *many* valid reasons why a cert might
need to be revoked, not the least of which is that somebody else got
your signing
key even though you stored it in a nuclear bunker, blah, blah, blah.

First, what I don't understand is what name space is actually be covered by the
signing cert. is it just for com.example.app, or is it for com.example (which is
normally what you'd put in your cert), or what? I suspect it's for the entire
O= namespace which means, oh say, that if O=ibm.com need to revoke a
cert.. it would need to find an entirely new namespace other than ibm.com to
migrate all of its apps?

Some clarification here on what the platform actually does, and what the
mitigation steps are necessary would be helpful. I'm afraid, however, just
telling people to not be human is not an especially helpful mitigation strategy,
especially at the very early stages of adoption.

Mike

PS: my first thought is that if you uninstall every ibm.com app, you should
be given the ability to completely nuke it from the keystore or something
like that so that when you reinstall that it does a new leap of faith. Not being
able to nuke the leap of faith keystore invites poisoning attacks by malicious
apps if nothing else.

--~--~---------~--~----~------------~-------~--~----~

2. Automatic browser?

Hi All,
I'm a newbie to Android application development (I'm usually on the
Android-platform mailing list). I need to create an app that does automatic
browsing.
Did someone walk this path before me? Can I get a few hints regarding the
browser's API that can enable such an app?

Thanks!
Yoav

--~--~---------~--~----~------------~-------~--~----~

3. SQlite and Foreign Keys

4. ImageView with large picture crashes on orientation change

5. Suggestions Needed: can not play sound files under "assets" folder

6. How to inflate AND replace *this* with the inflated tree?

7. How to inflate AND replace *this* with the inflated tree?