Hi guys,
I'm new to the scripting, im facing some problem with a very simple script below, what i want to do is passing 2 values from the email back to our system via 'get' method.
The 2 values are the 'email from address' and 'email subject'. I tested the script below works correctlly when i hardcode the parameter value, but when i replace it with fromAddress and mailSubject i get 'error due to the internal exception' when i test run the code. Further testing i found out fromAddress is working fine but whenever i have mailSubject in the url i will get the error.
I hope someone can take a look and help me out.
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");
response = invokeurl
[
type :GET
];