How can I send mail when a field value is modified?

How can I send mail when a field value is modified?

Assume you have a Feedback form with a Status field with values "Open" and "Closed". When a feedback/issue is solved, the status is set to "Closed" by the team member and a e-mail is sent to the person who had raised the issue. To do this, we have to add an on update script to theStatus field, as shown below:

Status
(
type = picklist
values = {"Open", "Closed"}
defaultvalue = "Open"
on update
{
if (input.Status == "Closed")
{
sendmail
(
To : input.Your_e-mailid
From : zoho.adminuserid
Subject : "Status of issue with subject " + input.Your_Comments
Message : "The issue is " + input.Status
)
}
}

)

    • Related Articles

    • How can I send only specific field values in the e-mail message?

      To send only specific field values in your e-mail, use the input.<field_name> variable in  the send mail task. For example, you have 3 fields (Name, Age, Email), and in the email message you want to send only the Name and E-mail field values. The ...
    • What is a Mail default value and Social default value?

      Mail default value - In the absence of a custom field item, whatever you give as a mail default value will occupy that place. For example if your custom field is ‘Company name’ and you enter ‘Tenant’ as a mail default value, the campaign will use the ...
    • Managing Mail Merge Templates

      Mail merge is a function that helps you to simplify repetitive tasks to create personalized documents (Forms, Letters, Address Labels, Envelopes, etc.). You can create a mail merge template that would contain the variables (merge fields) in it. Using ...
    • Mail Merge Templates

      Mail merge is a function that helps simplify repetitive tasks to create personalized documents (including forms, letters, address labels, and envelopes). You can create a mail merge template containing variables (merge fields) and use it to merge ...
    • In-mail Survey

      In-mail surveys are perfect when you want to embed a short survey in your email. Type in your question and your survey is ready. In-mail surveys can have only one question and it generates an HTML setup that can work with any email marketing ...