il codice che da errore è questo:

// From this point onward most server response codes should be 250
// Specify who the mail is from....
fputs($socket, "MAIL FROM: <" . $board_config['board_email'] . ">\r\n");
linea 142--> server_parse($socket, "250", __LINE__);