电子邮件错误消息ksh脚本中的选项非法

电子邮件错误消息ksh脚本中的选项非法,ksh,Ksh,我使用下面的代码在unix中使用ksh脚本发送邮件 echo "Hi. here is my message body" | mail -s "test mail ksh" "abc@xyz.com,efg@xyz.com" 但我一直得到下面的错误 mail: illegal option -- s usage: mail [+] [-epqr] [-f file] mail [-dt] persons 请使用正确的格式提供帮助。一些邮件(1)实现没有-s主题选项。如

我使用下面的代码在unix中使用ksh脚本发送邮件

echo "Hi. here is my message body" | mail -s "test mail ksh" "abc@xyz.com,efg@xyz.com"
但我一直得到下面的错误

    mail: illegal option -- s
    usage: mail [+] [-epqr] [-f file]
    mail [-dt] persons
请使用正确的格式提供帮助。

一些
邮件
(1)实现没有
-s主题
选项。如果可用,请改用
mailx
(1)。或者使用
sendmail
(1)或具有适当选项和输入的其他邮件