I thought CDO only ran on the Server versions of NT4+.
Josh
Get these: MozillaOperaOpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Microsoft CDO 1.21 - "CDO.dll" is the oldest
Microsoft CDO for NTS 1.2 - "cdonts.dll" (Active Server Pages / NT 4 )
Microsoft CDO for Windows 2000 library "cdosys.dll"
I'm running win 2k Server, so if you're on a workstation you may have to install some extra things from your workstation CD or just download the DLL itself.
Nah I dont.
Either telnet to an smtp server and fiddle with it there, or have your mail client connect through a bouncer app (which you will have written (kinda like a proxy server)), and then record all the commands sent between.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
I fixed it with the winsock control, Using the following code: Dim Progress
Dim Green_light As Boolean
Dim DATAFile As String
Private Sub cmdEnd_Click()
If Winsock1.State = sckOpen Then Winsock1.Close
End
End Sub
Private Sub Command1_Click()
Winsock1.Close
Winsock1.Connect SMTPServer , "25" 'port 25
Do While Winsock1.State <> sckConnected 'finds out if connected
DoEvents
Label1.Caption = Winsock1.State
Loop
Do While Green_light = False
DoEvents
status.Text = "Waiting for reply..."
Loop
Winsock1.SendData "MAIL FROM: " & "[email protected]" & Chr$(13) & Chr$(10) 'it then sends the data out of the text boxes
Do While Progress <> 1
DoEvents
status.Text = "Sending data. (1 of 3)"
Loop
Winsock1.SendData "RCPT TO: " & "[email protected]" & Chr$(13) & Chr$(10)
Do While Progress <> 2
DoEvents
status.Text = "Sending data. (2 of 3)"
Loop
Winsock1.SendData "DATA" & Chr$(13) & Chr$(10)
Do While Progress <> 3
DoEvents
status.Text = "Setting up body transfer..."
Loop
Winsock1.SendData "FROM: " & "[email protected]" & " <" & "OCAB FTP Server" & ">" & Chr$(13) & Chr$(10)
Winsock1.SendData "TO: " & "[email protected]" & " <" & "[email protected]" & ">" & Chr$(13) & Chr$(10)
Winsock1.SendData "SUBJECT: " & "test" & Chr$(13) & Chr$(10)
Winsock1.SendData Chr$(13) & Chr$(10)
Winsock1.SendData "testmail" & Chr$(13) & Chr$(10) & "." & Chr$(13) & Chr$(10)
Do While Progress <> 4
DoEvents
Label1.Caption = Winsock1.State
status.Text = "Sending data. (3 of 3)"
Loop
Winsock1.SendData "QUIT" & Chr$(13) & Chr$(10)
Winsock1.Close
End Sub
Private Sub Form_Load()
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Winsock1.GetData DATAFile 'this just recieves the data telling us if sucefful
Reply = Mid(DATAFile, 1, 3)
MsgBox DATAFile
If Reply = 250 Or Reply = 354 Then
Progress = Progress + 1
End If
If Reply = 220 Then
Green_light = True
End If
End Sub