2015-03-09 18:33 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/hbtip/smtpcli.prg
    ! added missing space after AUTH PLAIN
    ! resend EHLO command after STARTTLS
    ; Thanks to Rolf for information about both problems.
This commit is contained in:
Przemysław Czerpak
2015-03-09 18:33:06 +01:00
parent 00717d90b1
commit acc1a252e8
2 changed files with 9 additions and 2 deletions

View File

@@ -10,6 +10,12 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-03-09 18:33 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbtip/smtpcli.prg
! added missing space after AUTH PLAIN
! resend EHLO command after STARTTLS
; Thanks to Rolf for information about both problems.
2015-03-09 18:17 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbtip/client.prg
* removed trailing spaces

View File

@@ -168,7 +168,8 @@ METHOD StartTLS() CLASS TIPClientSMTP
IF ::GetOk() .AND. ::lHasSSL
::EnableSSL( .T. )
ActivateSSL( Self )
RETURN .T.
::inetSendAll( ::SocketCon, "EHLO " + iif( Empty( ::cClientHost ), "TIPClientSMTP", ::cClientHost ) + ::cCRLF )
RETURN ::GetOk()
ENDIF
RETURN .F.
@@ -263,7 +264,7 @@ METHOD Auth( cUser, cPass ) CLASS TIPClientSMTP
METHOD AuthPlain( cUser, cPass ) CLASS TIPClientSMTP
::inetSendAll( ::SocketCon, "AUTH PLAIN" + hb_base64Encode( hb_BChar( 0 ) + cUser + hb_BChar( 0 ) + cPass ) + ::cCRLF )
::inetSendAll( ::SocketCon, "AUTH PLAIN " + hb_base64Encode( hb_BChar( 0 ) + cUser + hb_BChar( 0 ) + cPass ) + ::cCRLF )
RETURN ::isAuth := ::GetOk()