Page 1 of 1

SMTP Server

Posted: Mon Jun 28, 2004 7:05 pm
by Killswitch
1. Can anyone name a free/open smtp server that i can use while testing out my program? I'd use my own but my ISP has blocked it.

2. Instead of writing a sendmail client could you connect to a server and use sendnetworkstring() to specify whom you want to send the message to?

for example:

opennetworkconnection(x,y)
sendnetworkstring("mail to: me@here.com")

?

Thank ye,

Posted: Mon Jun 28, 2004 7:12 pm
by thefool
1.:
You could download an smtp server program from nonags.com (cool freeware site), and set it up.

2.:
Using sendnetworkstring() and all that stuff is programming the client :)

i send an mail from Pegasus to myself. I had an watc on the connection between my mail server and my client program. here:
(i removed the server adress with mailserver.com..)
220 mailserver.com ESMTP
EHLO thefool
250-mailserver.com
250-PIPELINING
250-SIZE 10000000
250-VRFY
250-ETRN
250 8BITMIME
MAIL FROM:<danielm@mail.dk>
250 Ok
RCPT TO:<danielm@mail.dk>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
From: "Daniel M" <danielm@mail.dk>
To: danielm@mail.dk
Date: Mon, 28 Jun 2004 20:12:24 +0200
MIME-Version: 1.0
Subject: MySubject
Message-ID: <40E07BA8.31453.6C9DA@localhost>
Priority: normal
X-mailer: Pegasus Mail for Windows (v4.12a)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
X-Antivirus: avast! (VPS 0426-1, 25-06-2004), Outbound message
X-Antivirus-Status: Clean

MyBody
.
250 Ok: queued as 0056C47FEA1
QUIT
221 Bye

Posted: Mon Jun 28, 2004 7:15 pm
by Killswitch
Sorry, I didn't quite understand what you were saying in the last half of your message - will using sendnetworkstring() work?

Posted: Mon Jun 28, 2004 8:28 pm
by thefool
I just show communication between an smtp server and an client.
If you look at the communication, you can see how the client tells the server to send mail.

Posted: Mon Jun 28, 2004 10:01 pm
by Killswitch
Okey dokey, thanks alot.

(I'm a bit slow lately - im not getting my daily 10 cups of coffee :P )

Posted: Tue Jun 29, 2004 4:41 am
by KarLKoX