email - 从命令行 ubuntu 发送邮件
问题描述
我正在尝试从 ubuntu 的命令行发送电子邮件,以便将其合并到我的脚本中。
当我运行这个命令时:
echo "This is a test email again"| sendmail tdunphy@mycompany.com
我在邮件日志中看到了这一点:
Jul 9 13:41:21 tdunphy-VirtualBox postfix/local[31388]: B8BF17F: to=<tdunphy@mycompany.com>, relay=local, delay=0.17, delays=0.1/0.04/0/0.03, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jul 9 13:41:21 tdunphy-VirtualBox postfix/qmgr[31307]: B8BF17F: removed
但由于某种原因,电子邮件永远不会到达。任何有关如何解决此问题的提示将不胜感激。
解决方案
推荐阅读
- reactjs - 如何在 React 中的两个按钮之间切换并根据单击的按钮更改 NAvlink 路径
- keycloak - Keycloack v15 不再显示警报(无效的用户名和密码)
- javascript - 如何在浏览器中查看上传的图像
- css - 在 MarkDown 中编写时,有没有办法向 MkDocs 添加一些基本脚本?
- ejs - ejs的包含无法识别变量路径
- dialogflow-es - DialogFlow 未连接 Twilio 短信
- npm - 从本地托管的 verdaccio UI 中删除所有包
- flutter - 颤振方法检查是否将项目添加到firestore中的购物车
- reactjs - Blocklys Textblock 输入字段在 Material-UI Modal 中时无法编辑
- python - 如何从python中的文本文件中打印特定行