Send automatic email

Send automatic email

I wish to send automated email when you register operations.






if(Proyecto1[ID == input.Proyecto1].count()  >  0)
{
x = Proyecto1[ID == input.Proyecto1];
//input. refers to fields in current form 
Email=x.Email;
sendmail
[
from:zoho.adminuserid
to:input.Email
subject:"Subject of the email"
message:"Your message"
content type:HTML
]
}


I have done different methods used en the same a fetch mail, etc. I could not send mail.

I want to know as how to send an email to a client of a lockup or fetch.