[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Fix for blat.cpp to make it work with Windows ME
From: |
vtailor |
Subject: |
lynx-dev Fix for blat.cpp to make it work with Windows ME |
Date: |
Tue, 24 Apr 2001 14:59:47 -0400 |
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 address@hidden
Subject:test
Login name is address@hidden
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:<address@hidden>
<<<getline<<< 250 <address@hidden>... Sender ok
>>>putline>>> RCPT To: <address@hidden>
<<<getline<<< 250 <address@hidden>... 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 address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev Fix for blat.cpp to make it work with Windows ME,
vtailor <=