mailx更改发件人名称 [英] mailx change sender name

查看:298
本文介绍了mailx更改发件人名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我明白,为了使用 mailx 更改发件人的姓名,我应该执行以下操作:

I understood that for changing sender's name with mailx I should do the following:

mailx -r newmail@mail.com -s "some subject" my@email.com

但是当我这样做时,我得到:

But when I do that, I get:

mailx: invalid option -- r
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
            [-- sendmail-options ...]
       mail [-iInNv] -f [name]
       mail [-iInNv] [-u user

谁知道发生了什么?
谢谢,

Does anyone knows what's happening? thanks,

推荐答案

mailx -a 'From:name@your-domain.com' -s "Subject" my-best-friend@other-domain.com < text.txt

这篇关于mailx更改发件人名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆