Hello Marek!
You postet a lot time ago - I tryed the same way:
lRetVal:=HB_SendMail( cServer,nPort , cFrom, aTo, , , cBody, cSubject, aFiles, cUser, cPass, cPopServer, , ,.T. )
Can You tell me what's the problem please?
Most times lRetVal = .T. but only few mails where sent, though there is always
>> 235 Authentication succeeded <<.
***************************************************************
This works:
20100128-14:33:51 :INETRECVLINE( <pointer>, , 512 )
>> 235 Authentication succeeded <<
20100128-14:33:51 :INETERRORCODE( <pointer> )
>> 0 <<
20100128-14:33:51 :INETSENDALL( <pointer>, 33, MAIL FROM: <
hkrasser@utanet.at> )
>> 33 <<
20100128-14:33:51 :INETRECVLINE( <pointer>, , 512 )
>> 250 OK <<
20100128-14:33:51 :INETERRORCODE( <pointer> )
>> 0 <<
20100128-14:33:51 :INETSENDALL( <pointer>, 31, RCPT TO: <
hkrasser@utanet.at> )
>> 31 <<
20100128-14:33:51 :INETRECVLINE( <pointer>, , 512 )
>> 250 Accepted <<
20100128-14:33:51 :INETERRORCODE( <pointer> )
>> 0 <<
20100128-14:33:51 :INETSENDALL( <pointer>, 6, DATA )
>> 6 <<
20100128-14:33:51 :INETRECVLINE( <pointer>, , 512 )
>> 354 Enter message, ending with "." on a line by itself <<
20100128-14:33:51 :INETERRORCODE( <pointer> )
>> 0 <<
20100128-14:33:51 :INETSENDALL( <pointer>, 386, Date: Thu, 28 Jan 2010 14:33:50 +0000From:
hkrasser@utanet.atTo:
hkrasser@utanet.atSubject: Test-Mail HarbourMime-Version:1.0Content-Type: multipart/mixed; Boundary="=_0DREPHDICDJQGIWVBR_TIP_28.01.2010_143351"--=_0DREPHDICDJQGIWVBR_TIP_28.01.2010_143351Content-transfer-encoding: as-isDas ist der Body-Text des Mails--=_0DREPHDICDJQGIWVBR_TIP_28.01.2010_143351-- )
>> 386 <<
20100128-14:33:51 :INETSENDALL( <pointer>, 5, . )
>> 5 <<
20100128-14:33:51 :INETRECVLINE( <pointer>, , 512 )
>> 250 OK id=1NaUUq-0000XK-4L <<
20100128-14:33:51 :INETERRORCODE( <pointer> )
>> 0 <<
***********************************************************************************
This does not work:
20100128-14:36:47 :INETRECVLINE( <pointer>, , 512 )
>> 235 Authentication succeeded <<
20100128-14:36:47 :INETERRORCODE( <pointer> )
>> 0 <<
20100128-14:36:47 :INETSENDALL( <pointer>, 33, MAIL FROM: <
hkrasser@utanet.at> )
>> 33 <<
20100128-14:36:47 :INETRECVLINE( <pointer>, , 512 )
>> NIL <<
20100128-14:36:47 :INETERRORCODE( <pointer> )
>> -1 <<
20100128-14:36:47 :INETSENDALL( <pointer>, 5, . )
>> 5 <<
20100128-14:36:48 :INETRECVLINE( <pointer>, , 512 )
>> NIL <<
20100128-14:36:48 :INETERRORCODE( <pointer> )
>> -1 <<
Hans from Austria