Skip to Main Content

Infrastructure Software

Announcement

Testing banner

mailx

C starsJan 26 2023

Hi,
I use mailx -r as follows to change the sender's address to send out email successfully in Solaris 11.4:
cat <textfile> | mailx -r <sender@address> <rcpt@address>
I would like to make <sender@address> as default so that no need to have -r <sender@address> in the mailx command. That is "cat <textfile> | mailx <rcpt@address>". I tried putting the following in $HOME/.mailrc file but did not work.
set from="sender@address"
Appreciate if anyone could advice or pointer.

Comments
Post Details
Added on Jan 26 2023
0 comments
16 views