RE: solution: sending email through smtp.gmail.com under Windows XP & msvc 6.0

2005-01-05 Thread Serge
oh I know, I just send the piece of code as I test it out, of course, someone needs to refine, to add test for every line of code! to test return code from function. David Schwartz <[EMAIL PROTECTED]> wrote: read = SSL_read(ssl, reply, sizeof(reply));strcpy (reply, "encoded_base64_password\n");SSL_

RE: solution: sending email through smtp.gmail.com under Windows XP & msvc 6.0

2005-01-05 Thread David Schwartz
read = SSL_read(ssl, reply, sizeof(reply)); strcpy (reply, "encoded_base64_password\n"); SSL_write (ssl, reply, strlen (reply)); read = SSL_read(ssl, reply, sizeof(reply)); strcpy (reply, "MAIL FROM: <[EMAIL PROTECTED]>\n"); SSL_write (ssl, reply, strlen (reply)); All of the SSL_rea

solution: sending email through smtp.gmail.com under Windows XP & msvc 6.0

2005-01-05 Thread Serge
of course there is no check done in this code, just add the check for server answer, and it works!  Socket = HttpConnect ("smtp.gmail.com", 465); read = SSL_set_fd(ssl, Socket); read = SSL_connect(ssl); read = SSL_get_error(ssl, read); read = SSL_read(ssl, reply, sizeof(reply)); strcpy (reply, "E