I am trying to write a custom function that will send a response email as part of a Mail filter. I keep getting the same error when I try to save it, but I'm unable to track down the actual problem.
The error is Line NO: 9, Improper Statement Error might be due to missing ';' at end of the line or incomplete expression
Here is the script:
- info "To get the email data, use the 'mail_messageId' parameter sent from mail filter when calling the Custom Function.";
- messageDetails = zoho.mail.getMessage(mail_messageId);
- mailContent = messageDetails.get("CONTENT");
- mailSubject = messageDetails.get("SUBJECT");
- fromAddress = messageDetails.get("FROM");
- sendmail
- [
- from:zoho.adminuserid
- to: <fromAddress>
- subject: "Re: "<mailSubject>
- message:"<div>Uuuugh</div>"
- ]
Where am I going wrong?!?