Send Mail on Update Question

Send Mail on Update Question

 Hello,

I am setting a simple script that should be sending an email based upon the script syntax below.  This same script works with the "on add" command but not with the "on update" command.  Any advice would be helpful.  I don't want this email sent until the person entering the data presses submit, which is what I thought the On Update command did.  The on add command sends the email immediatly, which isn't ideal.

Thanks

 

if (input.Edge_Device  ==  "211a")
{
    sendmail
    (
        To       :  "input.email"
        From     :  zoho.adminuserid
        Subject  :  "211aDownload"
        Message  :  "<P>Download Link</P>"






)

{