Simple Custom Function won't Save/Work

Simple Custom Function won't Save/Work

Trying to create a simple Custom Function. It is written as follows:

  1. sendmail
  2. [
  3. from: zoho.adminuserid
  4. to: "txxxx@xxxx.com"
  5. subject: "New Request for Estimate Available"
  6. message: "Name : " + input.name
  7. ]
And I get the following error:

Failed to save the function
  • Variable 'name' is not defined Line Number: 6

I've read countless Help page/articles and this is how it says to write it and that it should work. Why isn't it woking? Any help greatly appreciated.