VB Code:
Option Explicit Private Sub Command1_Click() Winsock1.RemoteHost = "mx1.mail.yahoo.com" Winsock1.RemotePort = 25 Winsock1.Connect End Sub Private Sub Winsock1_Connect() Winsock1.SendData "USER anjanesh" & vbCrLf DoEvents Winsock1.SendData "PASS password" & vbCrLf DoEvents Winsock1.SendData "LIST" & vbCrLf DoEvents End Sub Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long) Dim TempString As String Winsock1.GetData TempString Debug.Print TempString End Sub
I don't understand the mx1 part but I think its varies - so how do I get it. This is what I get in the immediate window :
Can anyone help me out there. I have checked out the Winsock posts here but none are specified to yahoo mail.Code:220 YSmtp mta102.mail.sc5.yahoo.com ESMTP service ready
502 Command Unimplemented
502 Command Unimplemented
502 Command Unimplemented
Thanks
