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

Send an email using gitbash - Command not found

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

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

还尝试了以下方法:

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

但是没用 有什么原因吗?

如果git-bash,你的意思是Git for Windows bash session,那就不足为奇了。

请尝试使用 git send-email command,它可以将文件内容作为电子邮件发送。