Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
356 views