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.

asked Apr 6, 2010 at 15:56

2 Answers 2

2

Did you add the following to your AndroidManifest?

<uses-permission android:name="android.permission.INTERNET" />
answered Aug 4, 2010 at 17:25
Sign up to request clarification or add additional context in comments.

Comments

1

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

answered Apr 6, 2010 at 15:57

1 Comment

Yep I did that, it works just fine. It does not work through emulator though and the real phone. Thanks for help.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.