使用mail命令发送电子邮件时指定来自用户 [英] Specify the from user when sending email using the mail command
本文介绍了使用mail命令发送电子邮件时指定来自用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人知道如何使用邮件命令发送邮件时更改用户?我看过这个手册页,看不出怎么做。
Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this.
我们正在运行Redhat Linux 5。
We are running Redhat Linux 5.
推荐答案
http://www.mindspill.org/962 似乎有一个解决方案。
http://www.mindspill.org/962 seems to have a solution.
基本上:
echo这是邮件的主体| mail -s电子邮件主题recipent_address@example.com - -f from_user@example.com
这篇关于使用mail命令发送电子邮件时指定来自用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文