Send email using Intent
Intent i = new Intent(Intent.ACTION_SEND);
//i.setType("text/plain"); //use this line for testing in the emulator
i.setType("message/rfc822") ; // use from live device
i.putExtra(Intent.EXTRA_EMAIL, new String[]{"test@gmail.com"});
i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here");
i.putExtra(Intent.EXTRA_TEXT,"body goes here");
startActivity(Intent.createChooser(i, "Select email application."));
Related posts:
- Start a phone call try { Intent intent = new Intent(Intent.ACTION_CALL); ...
- Dialog box AlertDialog.Builder alertbox = new AlertDialog.Builder(ActivityA.this); alertbox.setTitle("Demo"); alertbox.setMessage(message);...
- Send SMS using SMSMatrix try { String MATRIXURL = "http://www.smsmatrix.com/matrix"; String PHONE =...
- Open a url in browser Intent viewIntent = new Intent("android.intent.action.VIEW",Uri.parse("http://java.codentuts.com")); startActivity(viewIntent); ...
Related posts brought to you by Yet Another Related Posts Plugin.
Tags: email
