SMTP Server

Just starting out? Need help? Post your questions and find answers here.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

SMTP Server

Post 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,
~I see one problem with your reasoning: the fact is thats not a chicken~
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Sorry, I didn't quite understand what you were saying in the last half of your message - will using sendnetworkstring() work?
~I see one problem with your reasoning: the fact is thats not a chicken~
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Okey dokey, thanks alot.

(I'm a bit slow lately - im not getting my daily 10 cups of coffee :P )
~I see one problem with your reasoning: the fact is thats not a chicken~
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Post Reply