Error in script when sending emails
Hi
my script has always worked but now I was trying to modify it and I could not save the new script. I got this error message:
In cases where From: address is not a zoho.adminuserid or zoho.loginuserid, the To: address can only be zoho.adminuserid and the sendmail task cannot have any CC: or BCC: address.
The script sends an email from the address of a specific Zoho user (
USER@rossatogroup.com) according to the selected county ("Provincia") in the form. Each county ("Provincia") is associated to a Zoho user who is responsible for that area.
For example
if((((((input.Provincia.contains("Chieti") || input.Provincia.contains("Perugia")) || input.Provincia.contains("Terni")) || input.Provincia.contains("L Aquila")) || input.Provincia.contains("Teramo")) || input.Provincia.contains("Forlì Cesena")) || input.Provincia.contains(("Rimini")))
{
sendmail
[
to:input.Email
subject:"Preventivo impianto a pavimento ribassato da Rossato Group"
message:(((((((("MESSAGE………..}
OR
if(((((((| input.Provincia.contains("Pescara")) || input.Provincia.contains("Ancona")) || input.Provincia.contains("Ascoli Piceno")) || input.Provincia.contains("Fermo")) || input.Provincia.contains("Macerata")) || input.Provincia.contains("Pesaro Urbino"))
{
sendmail
[
to:input.Email
subject:"Preventivo impianto a pavimento ribassato da Rossato Group"
message:(((((((("MESSAGE………..}
It doesn't work anymore.
Can you please check and let me know how I can send the email from the email address of my salesman and not from a generic email address?
Thank you in advance for your help.