views:

23

answers:

1

I am looking for something like 1st SMTP Server but open source, I have searches a lot of sources but all I found are samples about a server to receive/store msgs (but not send) or how to connect to a external server not how to turn your pc into one.

I am looking for a sample in any of the ms visual studio languages or delphi.

A: 

An SMTP server receives messages and either forwards them to other SMTP servers or stores the messages locally. So if you have an example of how to accept a message and an example of how to connect to relay a message to another SMTP server, you have everything you need for your own SMTP implementation.

Sjoerd
So 1st SMTP Server still needs an external smtp server to deliver the messages? Is there a way to make your pc the smtp server that sends the message without relaying into any other server?
dollin
"Sending a message" means passing it to another SMTP server. If you don't have an SMTP server yourself, you probably send all e-mail to a *smarthost* SMTP server at your ISP. That smarthost will then send it to the correct SMTP server. If you send an e-mail to [email protected], the server will look up the MX record in the DNS. This gives the address of the mail server (aspmx.l.google.com), and the smarthost will forward the e-mail to that mail server. That server then stores it in Atwood's GMail account.
Sjoerd