🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #3796

client email

#3796
From: lorenzo
Date: Thu, 04 Apr 2002 18:59
70 lines
2267 bytes
ciao a tutti,
sono alle prime armi con il vb e ho provato a scrivere un client email, il
problema � che si connette al server ma poi non manda i comandi come HELO,
MAIL FROM ecc...

help me ditemi come posso fare! =) grazie!!!

Private Sub Command1_Click()

If sock.State = 7 Then

sock.SendData "HELO " & Text1.Text & vbCrLf

sock.SendData "MAIL FROM: <anonimailer@" & Text1.Text & ">" & vbCrLf

sock.SendData "RCPT TO: <" & Text2.Text & ">" & vbCrLf

sock.SendData "DATA" & vbCrLf & vbCrLf & vbCrLf & Text3.Text

sock.SendData vbCrLf & vbCrLf & vbCrLf & "." & vbCrLf

sock.SendData "QUIT" & vbCrLf
sock.Close
Text7.Visible = True
Text7.Text = "EMAIL SPEDITA!!!!"
Else
Text7.Visible = True
Text7.Text = "ERRORE, EMAIL NON INVIATA"
End If


End Sub

Private Sub Command2_Click()

Unload Form1

End Sub

Private Sub Command3_Click()

sock.Close

End Sub

Private Sub Command4_Click()
sock.Close
sock.RemoteHost = Text4.Text
sock.RemotePort = Text5.Text
sock.Connect

End Sub

Private Sub Form_Load()

End Sub

Private Sub sock_DataArrival(ByVal bytesTotal As Long)
Dim dati As String
sock.GetData dati
Text6.Text = Text6.Text & dati & vbCrLf

End Sub




Private Sub Text6_Change()
Text6.SelStart = Len(Text6.Text)
End Sub
Technical Details
Message-ID: <Jk1r8.120979$1S3.3810684@twister1.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.infoave.net!news.stealth.net!news.stealth.net!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f94ee,e9b121aa7b1c665f,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2002-04-04 10:56:19 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.infoave.net!news.stealth.net!news.stealth.net!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
From: "lorenzo" <lorenzo-21@libero.it>
Newsgroups: free.it.visual-basic
Subject: client email
Lines: 74
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <Jk1r8.120979$1S3.3810684@twister1.libero.it>
Date: Thu, 4 Apr 2002 20:59:58 +0200
NNTP-Posting-Host: 151.28.8.140
X-Complaints-To: abuse@libero.it
X-Trace: twister1.libero.it 1017946537 151.28.8.140 (Thu, 04 Apr 2002 20:55:37 MET DST)
NNTP-Posting-Date: Thu, 04 Apr 2002 20:55:37 MET DST
Organization: [Infostrada]