tags:

views:

26

answers:

2

I followed this thread to connect to gmail to send email without user intervention:

http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-ap

I got my jars from: http://code.google.com/p/javamail-android/downloads/list

I have checked my code over many times to insure compliance. I have checked my credentials over and over to insure they are correct. I keep getting the 'Could not connect to SMTP host: smtp.gmail.com, port: 465'

I am developing using Eclipse on Windows XP SP3. I am attempting to send from my Nexus One. Any ideas would be appreciated.

A: 

Have you specified in your app that you're using an SSL connection?

jnpcl
Apparently not. I have reviewed all manifest permissions and do not see any specifically stating usage with SSL. If you would be so kind as to point me in the direction to do this I would be very grateful. :-) Thank you!
Android Addict
I have zero experience with Android/Eclipse.. so I can't be of any help there. I just happened to recall that `smtp.gmail.com:465 = SSL` :)
jnpcl
A: 

Add this line in the manifest: uses-permission android:name="android.permission.INTERNET"

Android Addict