Questionsforum
How to send an email using Intent in android ?

How to send an email using Intent in android ?



On 2014-06-16 01:01:46.0
Abakasha


Intent email = new Intent(Intent.ACTION_SEND); email.setType("message/rfc822");

email.putExtra(Intent.EXTRA_EMAIL,new String[]{"your mail id"});

email.putExtra(Intent.EXTRA_SUBJECT,"Hi this is a test mail buddy"); startActivity(Intent.createChooser(email,"choose an email client"))



On 2014-06-16 01:09:58.0
Abakasha

nice information @ABAKASH. It is easy to remember if you can share the final variable name of message/rfc822 with us.



On 2014-06-16 03:53:50.0
hablu

@ hablu Actually here the Intent is an implicit intent with action ACTIONSEND, and there may be lots of apps in your Android device which can handle the ACTIONSEND. To avoid a lot of applications in select list for user's choice" we use MIME type "message/rfc822" instead you can use

 intent.setType("text/plain");


On 2014-06-16 05:19:23.0
Abakasha

This link and This link will be help full



On 2014-06-16 05:25:22.0
Abakasha

copyright@questionsforum.net