| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

srcdoc W (sflmail.c 391): function getreply not known

#include "(unknown)"
static int getreply (
   int iSocket)

Synopsis

Get a reply from the SMTP server and see thats it's not an error. This function is used by smtp_send_mail.

Source Code - (sflmail.c)

{

   char strRetBuff[513];

   *strRetBuff = 0;
   read TCP ((sock_t)iSocket, strRetBuff, 512);

   /* See if we have not gotten a responce back from the mail server. */
   if (!*strRetBuff){
      return 777;
   }

   /* Save off server reply. */
   strcpy (strlast_smtp_message, strRetBuff);

   trim (strRetBuff);
   strRetBuff[3] = (char)0;
   return atoi (strRetBuff);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix