Hello,

I'm programming an application to know the number of Unread Mail in my Gmail
Account.
It use openssl for the ssl protocol

below are the lines code when I want to communicate :

     SSL_read(SSL_fd,buf1,200);i = sprintf(buf, "USER %s\n", login);
SSL_write(SSL_fd,buf,i);Sleep(100);
     SSL_read(SSL_fd,buf2,200);i = sprintf(buf, "PASS %s\n", pass);
SSL_write(SSL_fd,buf,i);Sleep(100);
     SSL_read(SSL_fd,buf3,200);i = sprintf(buf, "STAT\n");
SSL_write(SSL_fd,buf,i);Sleep(100);
     SSL_read(SSL_fd,buf3,200);i = sprintf(buf, "QUIT\n");
SSL_write(SSL_fd,buf,i);Sleep(100);

it send well the login it returns a request for password but after I don't
get an answer when sending password....

I hope someone could help me.

Thanks.
Flo

Reply via email to