- Home
·
- Miscellaneous
·
- Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my
Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my
Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my code.
Rate Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my
(1(1 Vote))
'St.joseph's college of Engineering,chennai.
'[email protected]
'----------------------------------------------
'u need -5 combo boxes and 3 textboxes.1 command button,winsock control.
Private Sub cmdSend_Click()
txtLog.Text = Empty
Socket.Close
Socket.RemoteHost = txtServer.Text
Socket.RemotePort = 25
Status "Connecting..."
Socket.Connect
End Sub
Public Sub Status(Txt As String)
txtStatus.Text = Txt
End Sub
Private Sub Ssocket_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Status "Error!"
End Sub
Private Sub Form_Load()
txtServer.AddItem "mta208.mail.scd.yahoo.com"
txtServer.AddItem "mc2.law16.hotmail.com"
End Sub
Private Sub Socket_Connect()
Dim Txt As String
Status "Connected"
Txt = ""
Txt = Txt & "HELO aaa" & Cr
Txt = Txt & "MAIL FROM: <" & txtFromAddress.Text & ">" & Cr
Txt = Txt & "RCPT TO: <" & txtTo.Text & ">" & Cr
Txt = Txt & "DATA" & Cr
Txt = Txt & "From: " & txtFromName.Text & "<" & txtFromAddress.Text & ">" & Cr
Txt = Txt & "Subject: " & txtSubject.Text & Cr
Txt = Txt & txtText.Text & Cr
Txt = Txt & Cr & Cr & "." & Cr
Txt = Txt & Cr & "quit"
Socket.SendData Txt
End Sub
Private Sub Socket_DataArrival(ByVal bytesTotal As Long)
Dim RText As String
Socket.GetData RText, vbString
txtLog.Text = txtLog.Text & RText
End Sub
Private Sub Socket_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
Status "Error!"
End Sub
Private Sub Socket_SendComplete()
Status "Mail Sent."
End Sub
Private Sub Socket_SendProgress(ByVal bytesSent As Long, ByVal bytesRemaining As Long)
Status "Sending mail..."
End Sub
Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my Comments
No comments yet — be the first to post one!
Post a Comment