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. MediaPlayer: is there way to track how many times song was played?

Is there way to track how many times song was played? something like
for example in Rhytmbox in Linux, then i can use this information to
create playlist based on most played songs, songs not played yet etc.

or if its not possible (I didn't found any way to get this information
myself), is it possible to track it somehow to be able to update my
application's statistics when song finished playing?

in perfect world i would like to be able to have this independent on
application which played music, but it would be ok if it would be
possible only for default android music player.

-- 

2. Development Question

Hey everyone,

I just rooted my moto droid. Now I am wondering if it is possible to
drop 1.5 or other versions of the OS on the phone and if so how? If
anyone could explain how I do this or link some forums that explain
this. Or is there maybe a dual boot option b/c I don't want to always
us 1.5 only for testing purposes.

-- 

3. Exception when using a BroadcastReceiver for battery-change events

4. Android IMEI with letter :O

5. Flipping Button Text Vertically

6. How to realize TextView control has wordwrap functionallity.

7. develop an application windows - android