1

I followed this stackoverflow thread to implement EmailSender using Javamail on Android.

But I am still getting this exception:

Could not connect to SMTP host: smtp.gmail.com, port: 465

I am using Android 1.6. What might cause this problem?

Any help is appreciated, thanks.

Community
  • 1
  • 1
user310180
  • 11
  • 2

2 Answers2

2

Did you add the following to your AndroidManifest?

<uses-permission android:name="android.permission.INTERNET" />
jacknad
  • 13,483
  • 40
  • 124
  • 194
1

Firewalls? Networking problems? Have you tried manually connecting (using a terminal program, or something similar)?

Nate
  • 484
  • 3
  • 6
  • Yep I did that, it works just fine. It does not work through emulator though and the real phone. Thanks for help. – user310180 Apr 06 '10 at 21:41