Creating a function that sends a mail using mail command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

  1. The problem statement, all variables and given/known data:

The function will be called m and it will allow you to send an email to someone using the mail command. The function should take the To: address, a Cc: address using the �t parameter, a subject line using the �s parameter and an input file. When running this function, you will type something like the following as an example:

m email1 email2 subject someinputfile.

  1. Relevant commands, code, scripts, algorithms:

m email1 email2 subject someinputfile
-t, -s

  1. The attempts at a solution (include all code and scripts):
m()  
{  
mail=$1  
-t=$2  
-t=$3  
-s=$4  
<=$5  
}   
  1. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):

Chemeketa Community College, Salem, Oregon, USA, D. Kraus, CIS140U (Cannot link yet)

The problem description is a bit confusing.
I think the following interpretation makes sense: the function m takes 4 parameters, and runs mail, passing parameters as arguments with additional -s and -t arguments, as required by mail.
Your current function assigns variables but does not run the mail command.