Need help on sendmail

Need help on sendmail

I am trying to use the sendmail function to send an email to the person that a task has just been assigned to.  The form is New_Task.  The table with the employee information is emp_list.  I have a lookup field from the New_Task form to the emp_list that pulls up a function field concatname which combines the last and first name.  Here is my code below, please let me know what is wrong with it, thanks.

{
assignedtaskemail
(
type = string
)
assignedtaskemail = emp_list[concatname = input.emp_list1];
SendMail
[
To: assignedtaskemail.Email
From: zoho.loginuserid
Subject: New Task Assigned
Message:  input.formdata
]
}