Return to Snippet

Revision: 18015
at September 20, 2009 23:42 by abwaters

Initial Code
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[]{"[email protected]"});  
i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here");  
i.putExtra(Intent.EXTRA_TEXT,"body goes here");  
startActivity(Intent.createChooser(i, "Select email application."));

Initial URL

Initial Description

Initial Title
Send email from Android using Intent

Initial Tags
email, android

Initial Language