【发布时间】:2019-10-05 11:47:34
【问题描述】:
我想通过 Centos7 中的命令发送电子邮件。我对这个问题使用了“telnet”命令,如下所示:
I touch example.sh file and save these command inside it :
echo "open mail.test.com 25"
sleep 3
echo "mail from:sender@test.com"
echo "rcpt to:receiver@test.com"
echo "data"
echo "hello"
echo "."
sleep 3
并使用此命令./example.sh | telnet
但它不起作用
你能帮帮我吗 谢谢
【问题讨论】:
-
为什么不使用像sendmail(1)这样的实际基于命令行的电子邮件程序?