开发者

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

开发者 https://www.devze.com 2022-12-26 01:16 出处:网络
I followed this stackoverflow thread to implement EmailSender using J开发者_Go百科avamail on Android.

I followed this stackoverflow thread to implement EmailSender using J开发者_Go百科avamail 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.


Did you add the following to your AndroidManifest?

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消