|
-
Dec 10th, 1999, 06:35 AM
#1
Thread Starter
Member
-
Dec 10th, 1999, 11:44 AM
#2
Lively Member
Try this code...
Private Sub Command1_Click()
Caption = "Sending Message.."
Winsock1.Connect txtMailServer, 25
End Sub
Private Sub Winsock1_Connect()
Winsock1.SendData "HELO " & Winsock1.LocalIP & vbCrLf & _
"MAIL FROM: <" & txtMailFrom & ">" & vbCrLf & _
"RCPT TO: <" & TxtTO & ">" & vbCrLf & _
"DATA" & vbCrLf & _
"TO: " & TxtTO & vbCrLf & _
"FROM: " & txtFrom & vbCrLf & _
"SUBJECT: " & TxtSubject & vbCrLf & _
txtMessage & vbCrLf & "." & vbCrLf & _
"QUIT" & vbCrLf
End Sub
Private Sub Winsock1_SendComplete()
Caption = "Send Complete."
End Sub
------------------
Regards,
Paul Rivoli
-------------------
[email protected]
http://users.bigpond.com/privoli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|