Android Uncategorized

Sending email from Android

Sending an email is a very basic functionality (for some applications anyway). Android makes it very easy to do this. All you have to do is create a new intent, setup the content of the email and send it. 

Intent in = new Intent(Intent.ACTION_SEND); 
in.putExtra(Intent.EXTRA_TEXT, “this is the body of the email”); 
in.putExtra(Intent.EXTRA_SUBJECT, “Subject”); 
startActivity(Intent.createChooser(in, “Title:”));

By Moazzam

Moazzam is a software developer working in the big apple. He has over a decade of experience in development. While most of his work involves developing web applications, he does development for Android and Windows Mobile in his spare time.

1 reply on “Sending email from Android”

but this code not run
it Shows Error “No Application perform this action”
i tried to run this code on xp operating System but it shows error
so tell me any other setting are required or what is problem

Leave a Reply

Your email address will not be published. Required fields are marked *