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:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user