email script can do gs.error() but not send email !

juan casas
Mega Expert

Help!!!

I am trying to pass a 'to' and 'cc' to a mail script and I am having a hard time.

 

I am able to pass the data to the mail script and print it out using gs.error(), so I know I am really really close,

however, I can't get the dang notification to fire!

 

the summary is as follows::

UI action ==> event ==> notification && mail script

 

 

UI action

find_real_file.png

 

 

 

notification 1

find_real_file.png

notification 2

find_real_file.png

notification 3

find_real_file.png

 

email script

find_real_file.png

 

log output

 

find_real_file.png

 

eventfind_real_file.png

 

 

what am I doing wrong?!??!

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, unfortunately screenshots are not the best way to share details of your configuration and you post does not make your issue clear.
    'I am able to pass the data to the mail script and print it out using gs.error()'
Your mail script would not 'fire' if it was not being triggered by the notification message, and based on the details you have provided the existence of the error log message would indicate that the notification was triggered and this resulted in the mail_script running and generating the log message.

Perhaps you could review your system and email logs and then clarify your issue?

View solution in original post

4 REPLIES 4

-O-
Kilo Patron
Kilo Patron

Have you tried adding additional recipients or checking the "Send to event creator" option?

I added a new question with the small progress I made:: https://community.servicenow.com/community?id=community_question&sys_id=44db06661b19d99038739979b04bcb19

 

 

what u said made it kinda work

Tony Chatfield1
Kilo Patron

Hi, unfortunately screenshots are not the best way to share details of your configuration and you post does not make your issue clear.
    'I am able to pass the data to the mail script and print it out using gs.error()'
Your mail script would not 'fire' if it was not being triggered by the notification message, and based on the details you have provided the existence of the error log message would indicate that the notification was triggered and this resulted in the mail_script running and generating the log message.

Perhaps you could review your system and email logs and then clarify your issue?

I added a new question with the small progress I made:: https://community.servicenow.com/community?id=community_question&sys_id=44db06661b19d99038739979b04bcb19