Send Mail deluge function from issues
Hello,
We are using the deluge sendmail invoke url. We have been successful when sending it from our super admin email- hard coded. When we attempt to change it to zoho.loginuserid we get an error on the from. Here is the code:
toEmailMap = Map();
ccEmailMap = Map(); toEmailMap.put("email",tpEmail); toEmailList = List(); ccEmailList = List(); toEmailList.add(toEmailMap); fromEmailMap = Map(); fromEmailMap.put("email","email@domain.com"); emailTemplateMap = Map(); emailTemplateMap.put("id",3562333000174894943); emailMap = Map(); emailMap.put("from",fromEmailMap); emailMap.put("to",toEmailList); emailMap.put("template",emailTemplateMap); nowList = List(); nowList.add(emailMap); nowMap = Map(); nowMap.put("data",nowList); info "Last Map" + nowMap; sendMailVar = invokeurl [ url :"https://www.zohoapis.com/crm/v3/Deals/" + thisOppId + "/actions/send_mail" type :POST parameters:nowMap + "" connection:"xxxxxxxxxx" ];
Thanks.