[GB.NET.SMTP]
* BUG: Fix the badly overriden class error. git-svn-id: svn://localhost/gambas/trunk@6409 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
73b2d0dd75
commit
00ed123d18
@ -40,7 +40,7 @@ End
|
||||
|
||||
Public Sub Connect(hClient As SmtpClient, (Host) As String, (Port) As Integer)
|
||||
|
||||
$hClient = hClient
|
||||
$hClient = hClient
|
||||
|
||||
End
|
||||
|
||||
|
@ -6,11 +6,13 @@ Property Read Connected As Boolean
|
||||
|
||||
Private $hProcess As Process
|
||||
|
||||
Public Sub Connect(sHost As String, iPort As Integer)
|
||||
Public Sub Connect(hClient As SmtpClient, sHost As String, iPort As Integer)
|
||||
|
||||
If Not sHost Then sHost = "localhost"
|
||||
If iPort = 0 Then iPort = 465
|
||||
|
||||
Super.Connect(hClient, sHost, iPort)
|
||||
|
||||
'Debug "Executing OpenSSL"
|
||||
$hProcess = Exec [SmtpSession.GetOpenSSLPath(), "s_client", "-quiet", "-connect", sHost & ":" & iPort] For Read Write As "Client"
|
||||
$hProcess.Blocking = True
|
||||
|
@ -32,11 +32,13 @@ Public Sub Client_Found()
|
||||
|
||||
End
|
||||
|
||||
Public Sub Connect(sHost As String, iPort As Integer)
|
||||
Public Sub Connect(hClient As SmtpClient, sHost As String, iPort As Integer)
|
||||
|
||||
If Not sHost Then sHost = "localhost"
|
||||
If iPort = 0 Then iPort = 25
|
||||
|
||||
Super.Connect(hClient, sHost, iPort)
|
||||
|
||||
$hSocket.Timeout = 10000
|
||||
$hSocket.Connect(sHost, iPort)
|
||||
$hSocket.Blocking = True
|
||||
|
@ -6,11 +6,13 @@ Property Read Connected As Boolean
|
||||
|
||||
Private $hProcess As Process
|
||||
|
||||
Public Sub Connect(sHost As String, iPort As Integer)
|
||||
Public Sub Connect(hClient As SmtpClient, sHost As String, iPort As Integer)
|
||||
|
||||
If Not sHost Then sHost = "localhost"
|
||||
If iPort = 0 Then iPort = 465
|
||||
|
||||
Super.Connect(hClient, sHost, iPort)
|
||||
|
||||
$hProcess = Exec [SmtpSession.GetOpenSSLPath(), "s_client", "-quiet", "-starttls", "smtp", "-connect", sHost & ":" & iPort] For Read Write As "Client"
|
||||
$hProcess.Blocking = True
|
||||
$hProcess.EndOfLine = gb.Windows
|
||||
|
Loading…
x
Reference in New Issue
Block a user