Hi,
I have used similar code on a related form and it worked, but it doesn't seem to be working here. So, what I want to do is say, there are two email address fields - one is called Email Address, the 2nd is Email to CC.
I want the form to send out a certain email and cc the 2nd email address IF IT IS NOT NULL.
This is what I have:
if (((input.Task_Completed.toString() == "Completed") && (input.Request_Type == "Create new SKU")) && (input.Email_to_CC == ""))
{
sendmail
(
To : input.Email
From : zoho.adminuserid
Subject : "Request # " + input.Request_Number + " has been completed."
Message :
)
}
if (((input.Task_Completed.toString() == "Completed") && (input.Request_Type == "Create new SKU")) && (input.Email_to_CC != ""))
{
sendmail
(
To : input.Email
From : zoho.adminuserid
CC : input.Email_to_CC
Subject : "Request # " + input.Request_Number + " has been completed."
Message :
)
}
I have that code for several different Request Types. I have used this on a different form and it worked, so not quite sure why it is not working here.
Thanks in advance!!!
Joy