Mail command in script

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"

Please have a search for "mail" in these forums. It will produce roundabout one gazillion of hits explaining how to do exactly this. (Tip: consider using shell variables)

I hope this helps.

bakunin