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. Failed to reopen debug port for Selected Client to:

Hi,

I am struggling to get my emulator to be able to bind for debugging
purposes.  I get the following stack trace when I start my emulator:


[2009-03-04 19:35:46 - ddms]Failed to reopen debug port for Selected
Client to: 8700
[2009-03-04 19:35:46 - ddms]Address family not supported by protocol
family: bind
java.net.SocketException: Address family not supported by protocol
family: bind
        at sun.nio.ch.Net.bind(Native Method)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(Unknown
Source)
        at com.android.ddmlib.MonitorThread.run(Unknown Source)

[2009-03-04 20:00:39 - ddms]Can't bind to local 8600 for de{*filter*}
[2009-03-04 20:00:43 - ddms]Can't bind to local 8601 for de{*filter*}
[2009-03-04 20:00:43 - ddms]Can't bind to local 8602 for de{*filter*}
[2009-03-04 20:00:45 - ddms]Can't bind to local 8603 for de{*filter*}
[2009-03-04 20:00:54 - ddms]Can't bind to local 8604 for de{*filter*}
[2009-03-04 20:00:54 - ddms]Can't bind to local 8605 for de{*filter*}
[2009-03-04 20:00:54 - ddms]Can't bind to local 8607 for de{*filter*}
[2009-03-04 20:00:55 - ddms]Can't bind to local 8610 for de{*filter*}
[2009-03-04 20:00:55 - ddms]Can't bind to local 8611 for de{*filter*}


Can someone please explain to me what I am doing wrong?  Here are some
specs:

Windows Vista Ultimate
JDK 1.6 Update 12
Android SDK 1.0r2

Thanks!

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

2. Emulator data connection problem

When I run the emulator on my laptop with wired connection, my rtsp
player application works fine.
But when I have the laptop hooked up with a wireless network, my rtsp
player application cannot establish data connection.
My rtsp player application always works fine on G1.

Why the emulator has problem with application making data connection
when the laptop is on wireless connection and works fine when laptop
is on wired connection?

-- Farshad

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

3. getspeed

4. 鈥淭he application xxxxxxxx (pr ocess xxxxxx) has stopped unexpectedly. Please try again.鈥

5. W/ProcessState: Opening '/dev/binder' failed: Permission denied

6. Porting Android on Beagleboard: No Graphic

7. Does android emulator support alsa(not oss)?