How to change mailx setting from cli?

Hi, guys! I want to send mail in a script using mailx. After some tests, I found mailx use settings under System → Email from webgui. I’ve tried to look for the setting files, such as /etc/mail/mailx.rc $HOME/.mailrc , but none of these files exist. So I wonder where the settings stored, please tell me, thank you!