Operating System - HP-UX
1752292 Members
4774 Online
108786 Solutions
New Discussion юеВ

Re: 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 3
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.