I want to send email from my android app...i got some code for this from internet but it is not executed...i am not recognized who is sender of this mail..
where sender is mention...plz tell me how it work..
Intent i = new Intent(Intent.ACTION_SEND);
i.setData(Uri.parse("mailto:"));
String[] to = { "someone1@example.com" , "someone2@example.com" };
String[] cc = { "someone3@example.com" , "someone4@example.com" };
i.putExtra(Intent.EXTRA_EMAIL, to);
i.putExtra(Intent.EXTRA_CC, cc);
i.putExtra(Intent.EXTRA_SUBJECT, "Subject here...");
i.putExtra(Intent.EXTRA_TEXT, "Message here...");
i.setType("message/rfc822");
startActivity(Intent.createChooser(i, "Email"));