Hi I am trying to send mail from my android application but I am not getting proper mail in my inbox
my code is here please help me.
Spanned mailBody2 = Html.fromHtml("<body><table width=\"200\" border=\"1\"><tr bgcolor=\"#3399FF\"><td>hi</td><td>gaurav</td><td>patel</td></tr><tr><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td></tr></body>");
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
String[] recipients = new String[] { "jansodariya@gmail.com" };
emailIntent.setType("text/html");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,recipients);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Summ");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,mailBody2);
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
You cannot do this. You only can send text trough an email. You must use php to send formatted mails. Please read here also Send HTML mail using Android intent