Results 1 to 7 of 7

Thread: smtp mailer outpot name...please just read

  1. #1

    Thread Starter
    Addicted Member Incures's Avatar
    Join Date
    May 2006
    Location
    south afrika
    Posts
    205

    smtp mailer outpot name...please just read

    below u can see my code...i made a mailer...and try to test it.
    and i know ther is sopose to be Text-box that recived the outpot..
    some 1 can tell me how to name it?
    the code is below so bye that u can tell me the name

    VB Code:
    1. Private Mail As String
    2.  
    3. Private Sub Command1_Click()
    4. Connected = False
    5. Socket.Close
    6. Socket.Connect "smtp.012.net.il", 25
    7. ' Attente de connection !
    8. While Connected <> True: DoEvents: Wend
    9. ' Traitement et Envoie du Mail !
    10. Mail = "HELO " & Socket.LocalHostName & vbCrLf
    11. Mail = Mail & "MAIL FROM:<[email protected]>" & vbCrLf
    12. Mail = Mail & "RCPT TO:<[email protected]" & vbCrLf
    13. Mail = Mail & "DATA" & vbCrLf
    14. Mail = Mail & "subject: New Mail" & vbCrLf
    15. Mail = Mail & "from: NVM" & vbCrLf
    16. Mail = Mail & "to: ME" & vbCrLf
    17. Mail = Mail & "       "
    18. Mail = Mail & vbCrLf & "." & vbCrLf
    19. Mail = Mail & "QUIT" & vbCrLf
    20. Socket.SendData Mail
    21. End Sub

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: smtp mailer outpot name...please just read

    why not just use the built in mail classes in the framework? Are you doing something special here that you need to connect to the mail server using sockets?

  3. #3

    Thread Starter
    Addicted Member Incures's Avatar
    Join Date
    May 2006
    Location
    south afrika
    Posts
    205

    Re: smtp mailer outpot name...please just read

    dose it matter?
    if u realy wanna know i just skilling socket and telnet...
    and do u know the answer? thx

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: smtp mailer outpot name...please just read

    Well this doesn't look like VB.NET code to me (I didn't even notice the first time I looked)... can you confirm if you are using VB6? if you are this is the wrong forum, but I will be more than happy to move it for you, where you can probably get an answer from one of our VB6 gurus.

  5. #5

    Thread Starter
    Addicted Member Incures's Avatar
    Join Date
    May 2006
    Location
    south afrika
    Posts
    205

    Re: smtp mailer outpot name...please just read

    yes it is...
    please move me :P

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: smtp mailer outpot name...please just read

    Done

  7. #7

    Thread Starter
    Addicted Member Incures's Avatar
    Join Date
    May 2006
    Location
    south afrika
    Posts
    205

    Re: smtp mailer outpot name...please just read

    some 1?

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