General
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the From address name in mailx

Nedved
Frequent Advisor

Change the From address name in mailx

Hi,

I am sending mails using the following command

mailx -r nedved@mycompany.com -s "( Subject )" "( Email id to be sent )" < file

And in the receiving end the mail came from is look like nedved in the from field and the email address is nedved@mycompany.com. I need to change the from name instead of nedved to something else.
Can some one tell me how to do this. I go through man page but i could not find.

3 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Change the From address name in mailx

Can't you change your -r option?
Nedved
Frequent Advisor

Re: Change the From address name in mailx

No i can't change the email id . But the name should be something other.
Dennis Handly
Acclaimed Contributor

Re: Change the From address name in mailx

>No i can't change the email id. But the name should be something other.

You're saying you want a name like:
Joe Blow

I don't think it is as simple as:
mailx -r "Joe Blow " ...

You may have to use sendmail directly or have sendmail rewrite it.