Nealry identical script produces error
The following script is preceded by 4 others that are nearly identical. The only differnce is when the emails are sent and the content of the emails.
When I add this script I get an "on load" error. All of the scripts are set to run "on load".
The script should be executed 31 days after the record is added, if NY2012 is "no".
- else if ((lead.Added_Time.addDay(31) < zoho.currentdate) && (lead.NY2012 == "no"))
{
sendmail
(
To : lead.Email
From : zoho.adminuserid
Subject : lead.Name + ", a New Years Special Offer for you...ends soon."
Message : (("EMAIL CONTENT WOULD BE HERE"
)
lead.NY2012 = "yes";
}