• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Connecting gmail.... using SMTP... urgent

f2002642

Lurker
moz-screenshot.png

Hi Guys
when i tried to send a mail ... using "smtp.gmail.com" as host and "587" as port. I am getting the following error.....

javax.mail.MessagingException: Could not connect to SMTP host: nested exception is: java.net.SocketException: Permission denied
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412) at
javax.mail.Service.connect(Service.java:310)
at
javax.mail.Service.connect(Service.java:169)
at
javax.mail.Service.connect(Service.java:118)
at
javax.mail.Transport.send0(Transport.java:188)
at
javax.mail.Transport.send(Transport.java:118)

Request time failed: java.net.SocketException: Address family not supported by protocol

Snapshot attached....


Please help me out in resolving this......
 

Attachments

  • Android_Exception.JPG
    Android_Exception.JPG
    140.9 KB · Views: 170
Back
Top Bottom