Ever since a windows update that took down my IIS6 mail server a few weeks back, I've been really paranoid about my mail server working.
So every time I run a windows update I fire up command prompt and send myself a quick test mail.
> telnet localhost 25 > helo domain.com > mail from: firstname.lastname@example.org > rcpt to: email@example.com > data some random body to mail myself .
This is a realy great way to test my mail server, but it's a pain in the neck to do quickly. Is there anyway i can run this in a batch script or something as a quick test?
I've tried a bat file but this just waits after i call telnet I've also explored if telnet accepts any input files and it does not seem to.
What's the best way to do this?