Send Emails Locally Through Network
In order to test my PHP email scripts, is it possible to send emails locally from one machine on a LAN to another machine, without using the internet?
Yes, but you'll still need a mail transport agent (MTA) on each machine. Common ones for GNU/Linux are e.g. sendmail or Postfix.
My computer is called daniel-laptop, so to send a mail I could send it to e.g. daniel@daniel-laptop or root@daniel-laptop from anywhere inside the network my computer is connected to.
Emails are always user@machine, so as long as the part after the @ is a valid hostname (i.e. points to a machine you can reach) then you can send an email.
Do you know of any programs for Windows? - Preferably ones that don't need to be installed?
No, I don't know any. Besides, you'll need to install it no matter what.
Anyway, the first result for "windows mta" on Google is this:
It contains a small list of MTAs for Windows.
If its just testing you're after this old thread contains some ideas, also look at fakemail.
I've used Postfix, fairly easy.
Originally Posted by Daniel0