mailx/s-nail super basic setting

I needed a quick email to go out from my server so I decided to install mailx.
Found out that s-nail is the new package name.
I’m the only one for this system so I went ahead with a global setting.

1.) dnf -y s-nail
2.) vi /etc/s-nail.rc

#v15 settings compatibility
set v15-compat

#smtp config
set mta=smtp://USERNAME:PASSWORD@SMTP_HOSTNAME \
 smtp-use-starttls
set from="mail@mail.com"

3.) Test sending an email out

echo "Body Here" | s-nail -s "Subject Here" Recipient@mail.com