Created
August 8, 2014 05:34
-
-
Save akbarsha03/f98772cd551b63f5cd49 to your computer and use it in GitHub Desktop.
Send email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent intentEmail = new Intent(Intent.ACTION_SEND); | |
intentEmail.putExtra(Intent.EXTRA_EMAIL, new String[]{"[email protected]"}); | |
intentEmail.putExtra(Intent.EXTRA_SUBJECT, "your subject"); | |
intentEmail.putExtra(Intent.EXTRA_TEXT, "message body"); | |
intentEmail.setType("message/rfc822"); | |
startActivity(Intent.createChooser(intentEmail, "Choose an email provider :")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment