使用gitbash发送电子邮件-找不到命令

时间:2019-09-13 19:21:23

标签: shell git-bash

我有一个file.sh,我正在尝试合并电子邮件。我不断收到以下消息:找不到mail命令或mailx命令

echo "hello" | sendmail -f send@email.com -t destination@email.com

还尝试了以下方法:

https://www.codexpedia.com/shell/send-email-from-shell-command-line/

但是它不起作用 有什么原因吗?

1 个答案:

答案 0 :(得分:1)

如果用git-bash表示您是Git for Windows bash会话,那就不足为奇了。

尝试使用git send-email command,它可以通过电子邮件发送文件内容。