Sending Email from Android Application
April 13, 2011 10 Comments
Few readers of mine has requested me to upload the source project of my previous two examples. Then I decided to add some flavor to them before I upload, which result this example. For mailing concept, I have referred from the Jon Simon’s blog. I tried lots of other way, but his code work very well for me.
This example is only the combination of Barcode Scanner, GPS and mail.
You can download source project from here.
The changes you have to make in this downloaded project is, to add any gmail user id and password into sendMail() method, in SendInfo class.


nice bro,,,
android is a new generation
amazing one … keep it up..
Hello, I just am stuck. Am not able to make it work…I downloaded the source but this too is incomplete…Help!!!
Hello Kunal,
The example is not incomplete, read out the lines and follow the the suggestion.
I have commented some lines where you have to give the email-id and password of your gmail account.
I will do the complete verification of your of your email and password using gmail server and sends mail.
Hey great work really, but it throws me an exception!!!
javax.mail.AuthenticationFailedException.
I change the pass and email_id only where you commented?
Thanks in advance!!!!
are you providing the gmail username and password?
here in this example I am using the port of gmail, so please use gmail account info only.
OK i found my error!!!!
Thank you very much!!!!
Again great work!!!!
hi prashant,
I imported this project to my android emulator.
I get this error: Unable to resolve target ‘Google Inc.:Google APIs:9′
can u tel?
which version of android you are working on?
Hey prashant,
any solution please help
I am not able to get this working. I did everything properly with no errors but when I run the app it crashes