I want to create a sh file to send e-mail by telnet. Something like this:read -p from:  fromread -p from (friendly name):  fromfread -p dest:  destread -p dest (friendly name):  destfread -p subjct:  subjctread -p text:  texttelnet server port (the user put this values on sh file directly)helomail from: $fromrcpt to: $destdatafrom: $fromf <$from>to: $destf <$dest>subject: $subjct$text.How can I do?Thanks in advance.
How to create a script to send e-mail by telnet?
shell script;telnet
I'm going to ignore the aspect of why you're doing this, and assume you already know the caveats  if not, know that many ISPs might block port 25 and some SMTP servers will block request from dynamic IP addresses.A little-known feature of bash is that you can direct output to /dev/tcp/hostname/port and it'll connect to the server. So IF you're using bash, you can do something like:cat > /dev/tcp/server/port <<EOFHELOMAIL FROM: $from[...]EOF