user310180
user310180

Reputation: 11

Sending Email in Android using JavaMail API without using the default android app

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.

Upvotes: 1

Views: 1578

Answers (2)

jacknad
jacknad

Reputation: 13739

Did you add the following to your AndroidManifest?

<uses-permission android:name="android.permission.INTERNET" />

Upvotes: 2

Nate
Nate

Reputation: 484

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

Upvotes: 1

Related Questions