How do I script the following commands, instead of having to type them one-by-one in command line?
If I type these commands in command line, the mail is sent:
telnet mail.test.com 25
RCPT TO: User@test.Com
Subject: test message
(mail.test.com is a mail server on my LAN)