VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my

by Martin Anbu Selvan (18 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 26th February 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

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



'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


Download this snippet    Add to My Saved Code

Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my Comments

No comments have been posted about Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my . Why not be the first to post a comment about Send Mail . This works perfectly with Yahoo.TESTED MANY TIMES WITH SUCCESSFULL RESULTS.Relay on my .

Post your comment

Subject:
Message:
0/1000 characters