Enclosed is a fix for the latest blat source code to make it
work with Windows ME (it already works for previous versions of
Windows):

Note that blat.exe can be compiled with the MingW32 version of gcc,
as well as with the other Windows version of gcc, but you have to
add #include <ctype.h> to the includes on top of the .cpp files.

Changes to blat.cpp to make it work:

    // Changed to EHLO processing 27 Feb 2001 Craig Morrison
    sprintf( out_data, "EHLO %s\r\n", SMTPHost);
//             (wanted_hostname==NULL) ? my_hostname  : wanted_hostname);
    if ( 0!=put_smtp_line( SMTPSock, out_data, strlen (out_data) ) ) {
        return(-1);
    }

    if ( get_smtp_line() != 250 ) {
        sprintf( out_data, "HELO %s\r\n", SMTPHost);
//                 (wanted_hostname==NULL) ? my_hostname  : wanted_hostname);

=========================================================================


Sending test.txt to [EMAIL PROTECTED]
Subject:test
Login name is [EMAIL PROTECTED]

Returned value of my_hostname: GTE/vtailor
<<<getline<<< 220 smtppop3pub.verizon.net; ESMTP Tue, 24 Apr 2001 13:45:51 -0500 (CDT) 
>>>putline>>> EHLO smtp.gte.net 
<<<getline<<< 250-smtppop3pub.verizon.net Hello 1Cust95.tnt1.feathersound.fl.da.uu.net 
[63.17.249.95], pleased to meet you 250-8BITMIME 250-SIZE 8388608 250-DSN 250-ONEX 
250-ETRN 250-XUSR 250 HELP 
>>>putline>>> MAIL From:<[EMAIL PROTECTED]> 
<<<getline<<< 250 <[EMAIL PROTECTED]>... Sender ok 
>>>putline>>> RCPT To: <[EMAIL PROTECTED]> 
<<<getline<<< 250 <[EMAIL PROTECTED]>... Recipient ok 
>>>putline>>> DATA 
<<<getline<<< 354 Enter mail, end with "." on a line by itself 
<<<getline<<< 250 NAA2725530 Message accepted for delivery 
>>>putline>>> QUIT 
<<<getline<<< 221 smtppop3pub.verizon.net closing connection 

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to