Send Email from Command Line· Windows Scripts
If you would like to send an email from the command line, modify the code below to fit your needs. You will need to manually type in each of the lines.
telnet smtp.mydomain.com 25 EHLO mydomain.com MAIL FROM:email@example.com RCPT TO:firstname.lastname@example.org DATA Subject: Test Message This is a test message . QUIT