首页 > 解决方案 > 从命令行 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

但由于某种原因,电子邮件永远不会到达。任何有关如何解决此问题的提示将不胜感激。

标签: email

解决方案


推荐阅读