login about faq

I am trying to use the email library for android. I have written a simple code as follows:

    CkImap imap = new CkImap();

    boolean success;

    // Anything unlocks the component and begins a fully-functional 30-day
    // trial.
    success = imap.UnlockComponent("Anything for 30-day trial");
    if (success != true) {
        Log.i(TAG, imap.lastErrorText());
        return;
    }

    // Connect to an IMAP server.
    success = imap.Connect("imap.gmail.com");
    if (success != true) {
        Log.i(TAG, imap.lastErrorText());
        return;
    } ....

However it is returning from this point itself. The last error text displayed is:-

     ChilkatLog:
   Connect_Imap:
     DllDate: Apr 22 2014
     ChilkatVersion: 9.5.0.33
     UnlockPrefix: Anything for 30-day trial
     Architecture: Little Endian; 32-bit
     Language: Android Java
     VerboseLogging: 0
     GMail does not allow unencrypted connections, auto-fixing to use TLS/SSL...
     To prevent auto-fix, set the AutoFix property = False/0
     hostname: imap.gmail.com
     port: 993
     connect2:
       connectImplicitSsl:
        connectSocket:
           connect_ipv6_or_ipv4:
             getAddressInfo:
               Failed to get host address info. (4)
               errno: 13
               osErrorMessage: Permission denied
               hostOrIpAddr: imap.gmail.com
               port: 993
             --getAddressInfo
             getAddressInfo failed.
           --connect_ipv6_or_ipv4
         --connectSocket
       --connectImplicitSsl
       ConnectFailReason: DNS lookup failed
     --connect2
     failReason: 2
     connect failed.
   --Connect_Imap
 --ChilkatLog

I am getting this error even when I try to send email using SMTP.    
Any help will be appreciated

Thanks.

asked Jun 12 '14 at 09:11

Amit's gravatar image

Amit
112

edited Jun 12 '14 at 09:12


See this: http://www.cknotes.com/android-socket-permission-denied-error/

(I found it by Googling "chilkat android permission denied" -- http://bit.ly/1s8zkO4 )

link

answered Jun 12 '14 at 10:59

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×184
×175
×45
×28
×11

Asked: Jun 12 '14 at 09:11

Seen: 1,462 times

Last updated: Jun 12 '14 at 10:59

powered by OSQA