What is wrong with this sendmail message?

What is wrong with this sendmail message?

I keep getting improper statement errors on the message, but I cannot see a problem.

Also, if the message is much longer the whole message turns black instead of being coloured yellow, red and blue.

  1. client = Clients[ID == input.Client_Lookup];
  2. sendmail
  3. [
  4.     from :zoho.adminuserid
  5.     to :"example@example.com"
  6.     subject :"Appointment with " + client.Name + " " + input.Appointment_DateTime
  7.     message :"Appointment with <b>" + client.Name + "</b> at <b>" + input.Appointment_Location + "</b> on <b>" + input.Appointment_DateTime + "</b><br><br><A HREF=\"https://what3words.com/" + input.Appointment_What3Words + "\">Open What3Words</a><BR><BR><b>Client Address</b><BR>" + client.Address + "<br>" + client.Town + "<br>" + client.County + "<br/>" + client.PostCode + "<br><a href=\"tel:" + client.Phone + "\">" + client.Phone "</a>"
  8.     Attachments :template:View_Appointment as PDF
  9. ]