Using Windows (2008) is there an easy command line tool that I can use to send a test email from a server to test the SMTP, user authentication, ports, etc... without writing my own?
|
feedback
|
|
Your best, easiest and most globally available tool: telnet
| |||||
feedback
|
|
If this is something that you have to test once in a while, or just for a small number of SMTP servers, then telnet may be the most convenient tool, as it has been pointed out. The best thing about telnet is that it's an almost universal tool, and that it allows you not only to test an SMTP server but also other services like POP, IMAP, etc. However, if you're performing this tests regularly or on a bigger scale, i'd highly recommend using swaks. It's extremely easy to use and can also perform other tasks like sending attached files (which can be useful for testing your mail content filters). It will also give you useful exit codes, so that you can even use it to perform automated tests. I use it frequently on Linux, but being a Perl script, you should be able to run it on a Windows box without any problems. | |||
|
feedback
|
|
Telnet to port 25 and issuing SMTP commands by hand is usually fine for this purpose. | |||
|
feedback
|
|
If you don't want to manually run through the entire SMTP transaction you can use a command line tool such as blat to send emails. | |||
|
feedback
|