mail我多次尝试使用以下命令发送邮件:
abdennour@pc: mail -v abd.tm@gmail.com
Subject: Hello World!
This is an email to myself.
Hope all is well.
.
Cc:
Run Code Online (Sandbox Code Playgroud)
我收到此错误消息:
/usr/lib/sendmail: No such file or directory
"/home/abdennour/dead.letter" 9/261
. . . message not sent.
Run Code Online (Sandbox Code Playgroud)
小智 6
我发现如果我同时安装了 mailutils 和 sendmail,该错误就会消失,并且可以像电子邮件一样发送文件内容:
sudo apt-get install mailutils
sudo apt-get install sendmail
cat /tmp/somefile.txt | mail -s "My subject " myemailname@example.com
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20355 次 |
| 最近记录: |