DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: can't get winsock udp protocol to work

  1. #1
    Join Date
    Jan 2006

    can't get winsock udp protocol to work

    I want to send unattended email from a server. I'm trying to use the UDP protocol. I set the Winsock Name to WinsockTest, the Protocol to UDP, the RemoteHost to my mail server, the RemotePort to 25. My code follows. Everthing I've read says this is easy but I'll be darned if I can get it to work.

    Dim SendToTest As String
    Dim SentFromTest As String
    Dim SubjectTest As String
    Dim MailBodyTest As String

    SendToTest = ""
    SentFromTest = "DoNotReply"
    SubjectTest = "Subject line"
    MailBodyTest = "Body text"


    WinsockTest.SendData "HELO x.x" & vbCrLf _
    & "MAIL FROM: " & SentFromTest & vbCrLf _
    & "RCPT TO: " & SendToTest & vbCrLf _
    & "DATA" & vbCrLf _
    & "SUBJECT: " & SubjectTest & vbCrLf _
    & MailBodyTest & vbCrLf & vbCrLf & "."


  2. #2
    Join Date
    Nov 2003
    Portland, OR
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Data Entry Work
    By Anjana Jonathan in forum Careers
    Replies: 5
    Last Post: 07-03-2006, 03:15 AM
  2. Replies: 0
    Last Post: 10-15-2001, 07:52 PM
  3. The Human OS: Part II
    By Nancy Folsom in forum Talk to the Editors
    Replies: 16
    Last Post: 12-03-2000, 07:17 PM
  4. The Human OS
    By Robert Hieger in forum Talk to the Editors
    Replies: 24
    Last Post: 11-06-2000, 03:46 PM
  5. Justification for tele-commuting
    By Jason Langston in forum Careers
    Replies: 10
    Last Post: 08-08-2000, 08:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center