Blat Return Codes

(compiled from source of Blat 1.8.4e)
Code Description
   
2
  • The server actively denied our connection.
  • The mail server doesn't like the sender name.
1
  • Unable to open SMTP socket
  • SMTP get line did not return 220
  • command unable to write to socket
  • Server does not like To: address
  • Mail server error accepting message data.
0 OK
1 File name (message text) not given
1 Bad argument given
2 File (message text) does not exist
3 Error reading the file (message text) or attached file
4 File (message text) not of type FILE_TYPE_DISK
5 Error Reading File (message text)
   
12 -server or -f options not specified and not found in registry
13 Error opening temporary file in temp directory
Codes from
/* $Id: gensock.h 1.8 1995/01/25 23:28:11 rushing Exp $ */
See C code with text descriptions
4001 ERR_CANT_MALLOC
4002 ERR_SENDING_DATA
4003 ERR_INITIALIZING
4004 ERR_VER_NOT_SUPPORTED
4005 ERR_EINVAL
4006 ERR_SYS_NOT_READY
4007 ERR_CANT_RESOLVE_HOSTNAME   
4008 ERR_CANT_GET_SOCKET
4009 ERR_READING_SOCKET
4010 ERR_NOT_A_SOCKET
4011 ERR_BUSY
4012 ERR_CLOSING 
4013 WAIT_A_BIT
4014 ERR_CANT_RESOLVE_SERVICE
4015 ERR_CANT_CONNECT
4016 ERR_NOT_CONNECTED
4017 ERR_CONNECTION_REFUSED
-5000 ERR_NO_ERROR_CODE
This is returned by misbehaving stacks that fail, but don't set an error code

Gensock Error Code Descriptions

      case 4001: printf("Error: Malloc failed (possibly out of memory)."); break;
      case 4002: printf("Error: Error sending data."); break;
      case 4003: printf("Error: Error initializing gensock.dll."); break;
      case 4004: printf("Error: Version not supported."); break;
      case 4005: printf("Error: The winsock version specified by gensock is not supported by this winsock.dll."); break;
      case 4006: printf("Error: Network not ready."); break;
      case 4007: printf("Error: Can't resolve (mailserver) hostname."); break;
      case 4008: printf("Error: Can't create a socket (too many simultaneous links?)"); break;
      case 4009: printf("Error: Error reading socket."); break;
      case 4010: printf("Error: Not a socket."); break;
      case 4011: printf("Error: Busy."); break;
      case 4012: printf("Error: Error closing socket."); break;
      case 4013: printf("Error: Wait a bit (possible timeout)."); break;
      case 4014: printf("Error: Can't resolve service."); break;
      case 4015: printf("Error: Can't connect to mailserver (timed out if winsock.dll error 10060)"); break;
      case 4016: printf("Error: Connection to mailserver was dropped."); break;
      case 4017: printf("Error: Mail server refused connection."); break;
      default:   printf("error %d in function '%s'", retval, function);

Revised: 1/29/2003 (Negative return codes listed prior to this date were made positive as is reflected by the code)
Toby's Blat Page | Toby's Home