Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Handling failed emails

karthik73
Mega Guru

I am thinking , what is the best way to handle the failed emails (not notifications).  

Our instance has a custom action to send emails, and whenever an email fails due to invalid recipient, there is no failure message reported to the record/user.

3 REPLIES 3

manikorada
ServiceNow Employee

Karthik,



You can have a business rule on sys_email and have it fired when the state of the email log is Sent-Ignored to send an email to person who created it or to what ever person you like to send the notification.


karthik73
Mega Guru

Hi Mani,



I think you meant sent - failed?


Check the statuses of email notifications below:



TypeThe status of the email notification. Choices are:
  • received: The server received this email.
  • received - ignored: The server received this email, but it was ignored by the instance for inbound email action purposes. Typically, these emails are either spam or auto-replies. See the Error String field for details.
  • send - failed: The server has attempted to send the email and failed. See the Error String field for details.
  • send - ignored: The server skipped sending this email. Typically, this is for an email which was generated but lacked a recipient email address or is a duplicate email. See the Error String field for details.
  • send - ready: The email is ready to be sent, but has not been sent out by the mail server. Typically, an email remains in this state for only a short time.
  • sent: The email was sent by the instance without any errors or issues.