我正在尝试向自己发送电子邮件。
我曾尝试过sudo apt-get install postfix mailutils
mail -s "This is the subject" --append=FROM:[email protected]
然后我得到:
To:
Cc:
...
我在To和Cc空格中输入信息,然后按Enter键。但是,它只是给了我空的空间。我点击回车,它只是给我新线。然后我点击ctrl ^ C两次,它会杀死电子邮件。我只是想发送它。
使用Control-d结束它。请参阅此源https://linux.die.net/man/1/mail。
如果/etc/postfix/main.cf文件中有一个,请确保添加中继主机