Dear Concern,
We use following mail command in a script. We want to modify below command in script so that we can set mail as CC, BCC and From field of mail also can be modified. Please suggest.
echo "The SFTP user account '"$username"' will be expired soon. If you want to extend your account, please send a mail to sftp@no.smtp.mail keeping CC your Line Manager mentioning new account timeline with proper justification." | mail -s "SFTP account about to be expiration notification" "$username"