This is my html content, I have a button, on click of button I have to send a mail but the content of mail (like body ,subject ) are to be taken from html content.
Html content :
@"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
<title>Untitled Document</title>
<style>.reservation { }.reservation table {}.reservation tr { background-color: #F6F2E7; }.reservation th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #F6F2E7; background-color: #302824; padding: 5px; text-align:left; }.reservation td { padding-top: 3px; padding-right: 5px; padding-bottom: 3px; padding-left: 5px; border-bottom: 1px solid #DFDBD1; color: #443D37; font-family: Arial, Helvetica, sans-serif; font-size: 12px; }.reservation td strong { font-weight: bold; padding-right:10px; }.reservation td span { font-weight: normal; }
</style>
</head>
<body>
<div style=\"width:300px; margin:auto;\"><div class=\"reservation\">
<table width=\"300px\" cellpadding=\"0\" cellspacing=\"0\">
<tr> <th width=\"130px\">Reservation </th>
<th> </th> </tr>
<tr> <td> <strong>%@ :</strong> </td>
<td> <span>%@</span> </td>
</tr> <tr> <td> <strong>%@ :</strong> </td>
<td> <span>%@</span> </td> </tr>
<tr> <td> <strong>%@ :</strong> </td> <td> <span>%@</span> </td> </tr>
<tr> <td> <strong>%@ :</strong> </td>
<td> <span>%@</span> </td> </tr>
</table>
</div>
</div>
</body>
</html>
Send Html content in mail You have to use
Html.fromHtml("html data").Here sample code ..
AppMobiGurmeet saying right. Android support only some Tag..
For more information check below link..
Link1
Link2