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. Wap Receiver

Hi!

Im currently devoloping (well, trying to) a wap receiver application.
ive seen this hex-string in the debug window that when converted to
ascii, displays the text of the message.

but ive got no idea how to get that hex string programatically from
the message? i know how the debug window does it, but that class used
is not part of the api. can anyone please help me out on that?

thanks

-- 

2. 2-D Graphics Performance after Motorola Droid 2.1 Update

I have observed a marked difference in frame rate of 2-D (Canvas)
graphics following a 2.1 update on the Motorola Droid. Details are
here:

http://tesujigames.blogspot.com/2010/04/2-d-graphics-slowdown-after-motorola.html

Can anyone else corroborate this?  I have posted the code and an apk
in the above blog entry.

Also, it would be interesting to know whether there is a difference
between manual and OTA updates.

Thanks!

-- 

3. hello 锛?get trouble with surf aceview switch.

4. Updating bounds with animation

5. Android Dev Phone 2: version and iPhone sim card questions

6. Undocumented error code from glGetError

7. Can't dispatch DDM chunk 52454151: no handler defined