JavaMail API is quite useful,but how to use it in Android
We can use the javamail-android, it is a JavaMail port for the android platform
https://code.google.com/p/javamail-android/downloads/list
before you start coding,please download the three file in the following url:
https://code.google.com/p/javamail-android/downloads/list
additional.jar
mail.jar
activation.jar
Here is three url that is very helpful:
http://mrbool.com/how-to-work-with-java-mail-api-in-android/27800#ixzz2j94GWJiW
http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a
http://androidcodeexamples.blogspot.in/2012/05/android-send-email-via-gmail-actually.html
You may encount this problem
Could not find method javax.activation.DataHandler
This is because you use different version of mail.jar and activation.jar, please make sure you download the three file from the same place.
Here is an answer
http://stackoverflow.com/questions/13728421/java-mail-1-4-5-on-android
You may want to use the original version,however it can not run unless small modifictaion.
mail.jar
https://java.net/projects/javamail/pages/Home
activation.jar
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html#jaf-1.1.1-fcs-oth-JPR
Download Source code of JavaMail:
http://download.java.net/maven/2/com/sun/mail/javax.mail/
https://java.net/projects/javamail/pages/Home