Sender name in the format "MAC [mac@yahoo.com]" in mailx command.

Hi Guys,

I want the sender name in the format of "MAC [mac@yahoo.com]" in the mailx command.

I tried the below command but it is throwing error.

> mailx -s "Test" -r 'MAC [mac@yahoo.com]' xxx@gmail.com
EOT
[mac@yahoo.com] contains invalid character '['
No such file or directory
. . . message not sent.
xxcd:~>

Can somebody help me out here.

Cheers!!!!

---------- Post updated at 11:48 AM ---------- Previous update was at 11:33 AM ----------

I found the solution.

mailx -s "Test" -r "MAC <mac@yahoo.com>" xxx@gmail.com