0

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?

4

3 回答 3

0

使用 -r 指定“发件人地址”

/bin/mailx -r <replyemail> -s "$SUBJECT1" "$EMAIL" < "$EMAILMESSAGE"
于 2013-07-16T17:55:48.370 回答
0

使用像 mutt 这样的电子邮件客户端登录您的电子邮件帐户。或者您只是在谈论这台机器上的内部电子邮件?

于 2013-07-16T17:56:57.740 回答
0

你可以试试这个

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 传递给底层邮件程序。

于 2013-07-16T18:09:48.303 回答