Getting error string "User did not press the Send button in Email Client"

now_dev
Mega Expert

Hello,

I am trying to send notification using client template and in emails logs, state is coming as "Sent ignore". In error string, I am getting message saying "User did not press the Send button in Email Client". Also, no error logs are coming. Please help

16 REPLIES 16

Could you try removing reply-to & from part & then try & send a mail through client template.


tried but still, the type is coming send-ignored. Also, weight is same.


now_dev
Mega Expert

Hi All,



I am trying to create a two client template on the incident table. For that, I have created two UI action and two client email template.


I have also created a choice field on the incident table to choose which template to be displayed. Can somebody point me in correct direction



Below is the script I am writing in UI action



function OpenClientPopUp(){       --------This script is picking correct template but not sending emails


g_form.setValue('u_action_type','Forward');


//g_form.save();


forwardEmail();


}


function forwardEmail(){



var id = g_form.getUniqueValue();


emailClientOpenPop("email_client.do?sysparm_target=incident&sysparm_table=incident&sysparm_sys_id="+id+"&sys_uniqueValue="+id+"&incident.u_action_type=Forward&sysparm_stack=no");


}


====================================


This script is not picking the template at all


g_form.setValue('u_action_type','Forward');


//g_form.save();


forwardEmail();


}


function forwardEmail(){



var id = g_form.getUniqueValue();


popupOpenEmailClient("email_client.do?sysparm_target=incident&sysparm_table=incident&sysparm_sys_id="+id+"&sys_uniqueValue="+id+"&incident.u_action_type=Forward&sysparm_stack=no");


}



Thanks in advance


youguess
ServiceNow Employee
ServiceNow Employee

If you go to the sent ignore emails and check the header info, you may see



X-ServiceNow-Source: EmailClient



It means when someone opens the email client and then close it without hitting the send button, since opening the client creates the email right away But if they close it without hitting send, we don't want to send it. Can you please confirm if this is the behavior?



Hi Haofeng,


I am getting below info in header


X-ServiceNow-Source: EmailClient


X-ServiceNow-SysEmail-Version: 2



I am hitting the send button as well.