Send Email from Command Line
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:firstname.lastname@example.org RCPT TO:email@example.com DATA Subject: Test Message This is a test message . QUIT