This is what I am using
/bin/mailx -s "$SUBJECT1" "$EMAIL" < "$EMAILMESSAGE"
Since I dont have access to a particular machine I am using my friends credential to login and I want my name as the sender. how should i do it?
This is what I am using
/bin/mailx -s "$SUBJECT1" "$EMAIL" < "$EMAILMESSAGE"
Since I dont have access to a particular machine I am using my friends credential to login and I want my name as the sender. how should i do it?
使用 -r 指定“发件人地址”
/bin/mailx -r <replyemail> -s "$SUBJECT1" "$EMAIL" < "$EMAILMESSAGE"
使用像 mutt 这样的电子邮件客户端登录您的电子邮件帐户。或者您只是在谈论这台机器上的内部电子邮件?
你可以试试这个
export REPLYTO=me@myemail.com
/bin/mailx -aFrom:me@myemail.com "$SUBJECT1" "$EMAIL" < "$EMAILMESSAGE"
如果您的 mailx 副本具有 -a,则将 from 标头添加到消息中
或者
/bin/mailx -s "$SUBJECT" "$EMAIL" -- -f me@myemail.com < "$EMAILMESSAGE"
应该只是将--
-f 传递给底层邮件程序。