I would like to simulate an SMTP server for the purposes of testing our product. This will allow us to verify that an email message was sent, as well as being able to verify the contents of the email message, for testing purposes.
We use the Test::More module for writing automated tests.
I would like to be able to setup a machine that simulates the SMTP server. The machine name could then be specified as the mail server in our product, instead of using a real mail server.
The script will listen on port 25, pretending to be a mail server by conversing in accordance with the SMTP protocol. The script should save the data received to the local file system for later inspection.
In reply to Testing email send by Euclid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |