How to send mail in android ?
Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_EMAIL, new String[]{"er.naveen.tamrakar@gmail.com"}); intent.putExtra(Intent.EXTRA_SUBJECT, "subject");
intent.putExtra(Intent.EXTRA_TEXT, "message");
intent.setType("message/rfc822");
startActivity(Intent.createChooser(intent, "Choose an Email client :"));
Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_EMAIL, new String[]{"er.naveen.tamrakar@gmail.com"}); intent.putExtra(Intent.EXTRA_SUBJECT, "subject");
intent.putExtra(Intent.EXTRA_TEXT, "message");
intent.setType("message/rfc822");
startActivity(Intent.createChooser(intent, "Choose an Email client :"));
No comments:
Post a Comment