String emailList[] = {emailAddress1, emailAddress2, ...};
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("plain/text");
intent.putExtra(Intent.EXTRA_EMAIL, emailList);
intent.putExtra(Intent.EXTRA_SUBJECT, "Email Subject");
intent.putExtra(Intent.EXTRA_TEXT, "Email Text");
startActivity(Intent.createChooser(intent, "Choice email App"));
Send email by startActivity with Intent.ACTION_SEND
Here is a example by calling startActivity() with Intent.ACTION_SEND. Android OS will start a app Chooser suitable for "plain/text" email sending.
0 Response to "Send email by startActivity with Intent.ACTION_SEND"
Posting Komentar