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
EHLO test.com
MAIL FROM:Admin@test.com
RCPT TO: User@test.Com
DATA
Subject: test message
text
text
.
QUIT
(mail.test.com is a mail server on my LAN)
Start Free Trial