| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "(unknown)" static int getreply ( int iSocket)
Get a reply from the SMTP server and see thats it's not an error. This function is used by smtp_send_mail.
{ 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); }
| << | < | > | >> |
![]() |