Results 1 to 6 of 6

Thread: Yahoo Mail

Threaded View

  1. #1

    Thread Starter
    Lively Member anjanesh's Avatar
    Join Date
    Nov 2002
    Location
    Nerul, Navi Mumbai, India
    Posts
    68

    Yahoo Mail

    VB Code:
    1. Option Explicit
    2. Private Sub Command1_Click()
    3. Winsock1.RemoteHost = "mx1.mail.yahoo.com"
    4. Winsock1.RemotePort = 25
    5. Winsock1.Connect
    6. End Sub
    7.  
    8. Private Sub Winsock1_Connect()
    9. Winsock1.SendData "USER anjanesh" & vbCrLf
    10. DoEvents
    11. Winsock1.SendData "PASS password" & vbCrLf
    12. DoEvents
    13. Winsock1.SendData "LIST" & vbCrLf
    14. DoEvents
    15. End Sub
    16.  
    17. Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
    18. Dim TempString As String
    19. Winsock1.GetData TempString
    20. Debug.Print TempString
    21. 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 :

    Code:
    220 YSmtp mta102.mail.sc5.yahoo.com ESMTP service ready
    
    502 Command Unimplemented
    
    502 Command Unimplemented
    
    502 Command Unimplemented
    Can anyone help me out there. I have checked out the Winsock posts here but none are specified to yahoo mail.
    Thanks
    Last edited by anjanesh; Mar 9th, 2005 at 04:16 AM.
    Trying out VB .NET 2005 Express

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width