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. : How to stops the activity from getting restarted when mode changes from LandScape to Portrait or vice-versa

Hiiii Alllll

    Is there any way to stop the activity from getting  restarted
when the mode changes from LandScape to Portrait or vice-versa

Please help me Out Guysssssss...!!!!

Thanks in Advance for any Replays..!!!!

Cheers
Imran



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

2. Does anyone know Puppet Master?

Hi All,

Is there any Python Test Suite for testing in Android?

Thanks in advance,
--Marcus

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

3. how to listen callee hangup call event?

4. My application doesn't work...

5. How to do JUnit testing for database access?

6. Need Help..... To install android package (.apk) on HTC Touch Mobile

7. Got problem while building the core of Android source