Email notification are not sending when an event is trigger

appsicumdisplay
Mega Contributor

Hii All,

        I search a lot about email notification but I don't get any satisfied answer. Many questions don't have any answer and some have suggest that "Checked field(Send to event creator) in Email Notification. I did the same but email are not sending please help me out.

I want to send an email using a event when a condition is met in business rule. My situation is following.

  • Event: exceed_proposed_time
    • Fired by: After new time record redirection
  • Email Notification: Exceed Proposed Time
    • Send to event creator = checked
  • Business Rule: After new time record redirection
    • insert = checked
    • update = checked
    • Script: gs.eventQueue('exceed_proposed_time', current, current.sys_id, "myemail@example.com");

Business rule have met condition: I checked and showing a error message

Event is created: I checked in System Logs -> Events

Email is not sending: Checked my inbox and ServiceNow's "System Mailbox -> outbound -> outbox".

Please let me know where I'm wrong or you need more information.

Thanks-

Macarius

1 ACCEPTED SOLUTION

Hi Macarius,



Nice, now we definitely know what the problem is. Now it's a matter of pinpointing what's causing it. I think there is no shortcut here then just go through those steps:


Diagnosing and remedying stuck event processes



You can also try to log in to your affected nodes and do it yourself:


How do I log into a specific node or cancel a job on a node I'm not logged into?



or just contact SNow and they will be able to do it for you.




Cheers



Greg


View solution in original post

28 REPLIES 28

Hi Macarius,



Nice, now we definitely know what the problem is. Now it's a matter of pinpointing what's causing it. I think there is no shortcut here then just go through those steps:


Diagnosing and remedying stuck event processes



You can also try to log in to your affected nodes and do it yourself:


How do I log into a specific node or cancel a job on a node I'm not logged into?



or just contact SNow and they will be able to do it for you.




Cheers



Greg


Yes Greg you are right.



My dev instance have some problem. I import my application on another instance and email notification are successfully sent.



Thanks to both of you Greg and Tony. You guys are awesome. I learned lot of things about notifications. Now I'm going to contact ServiceNow.



Thanks-


Macarius


aastha14
ServiceNow Employee
ServiceNow Employee

Hi Greg,


I read your reply to Macarius's reply. But my Diagnostics Page is as below. It shows the only error is


POP3 StatusProcessed 0 emails



Nothing to do with Events Pending. What could be the possible error that is causing this error and what changes will help me get rid of this?




Nameapp128138.iad1.service-now.com:supporttoolsdev004
Statusonline
Logged in users64
Last reported2 seconds
Last reported (seconds ago)2
JVM UP time5 days 14 hours 59 minutes
JVM CPU time3 days 14 hours 25 minutes
Scheduler runningtrue
Scheduler queue length0
Memory (MB)343.0 of 1980.0
JVM Classes19851.0 loaded, 1543.0 unloaded
Transactions527045
Errors230
GC.ParNew.Count206605 (127 per 5 minutes)
GC.ParNew.TotalTime1243447 (20 minutes)
GC.ParNew.AvgTime0.0060184747
GC.ConcurrentMarkSweep.Count1586 (0 per 5 minutes)
GC.ConcurrentMarkSweep.TotalTime1378513 (22 minutes)
GC.ConcurrentMarkSweep.AvgTime0.8691759
Nameapp129013.iad1.service-now.com:supporttoolsdev006
Statusonline
Logged in users51
Last reported0 seconds
Last reported (seconds ago)0
JVM UP time5 days 18 hours 44 minutes
JVM CPU time2 days 17 hours 4 minutes
Scheduler runningtrue
Scheduler queue length0
Memory (MB)514.0 of 1980.0
JVM Classes25259.0 loaded, 2365.0 unloaded
Transactions746751
Errors2992
GC.ParNew.Count140725 (84 per 5 minutes)
GC.ParNew.TotalTime1033619 (17 minutes)
GC.ParNew.AvgTime0.0073449565
GC.ConcurrentMarkSweep.Count1646 (0 per 5 minutes)
GC.ConcurrentMarkSweep.TotalTime1710635 (28 minutes)
GC.ConcurrentMarkSweep.AvgTime1.0392679



System overview
https://supporttoolsdev.service-now.com/sys_ui_page.do?sys_id=3e92c8650a6a803f00cff48fe71bba98



Emails (recv) last 60 minutes0
Emails (sent) last 60 minutes2
Events pending143
Log entries last 60 minutes110312
POP3 StatusProcessed 0 emails
SMTP StatusConnected to: relay, as: supporttoolsdev@service-now.com



Database overview
https://supporttoolsdev.service-now.com/sys_ui_page.do?sys_id=3e8e19220a6a803f0068a8f6bf654fce



URLjdbc:mysql://db161070.iad1.service-now.com:3423/:supporttoolsdev
Namesupporttoolsdev_1
Driver
Type
Version5.5.36-log
JDBC1.1




Thank you.


Eduard Nitoi
Tera Contributor

Please try to add :

 

answer = true;

 

in the Advanced condition. 

 

Do not try to create the answer variable, just type it as above.

 

EduardNitoi_0-1702045734425.png