Plain text notification body is blank

Michael Ara_jo
Kilo Guru

I've setup a few notifications where Content type=Plain Text Only and the body is simply: Configuration item: ${cmdb_ci} : Created: ${sys_created_on} : Incident Number: ${number}

 

This notification is fired through conditions against the Incident table, when Priority of an incident is P1 or P2.

When I go to the System Notification > Logs and see what the body content shows, I expect to see as the Body Configuration item: (CI from Incident) : Created: date/time Incident created : Incident Number: The incident number

But instead the Body per the log is showing me this: <span style='font-family: verdana'></span>

 

I previously set this notification as HTML, but the notification goes to a third party vendor system that generates call alerts and reads the content of the body of that email, but it was reading off all the html stuff.  So my thought is make the notification plain text and it would skip sending the body that I configured along with all the html code around it.

5 REPLIES 5

Chandresh Tiwa2
Mega Guru

Hi @Michael Ara_jo ,

 

Have you written the body content in an email template? If yes, then it is also worth checking the source code of Message HTML / Message in the "notification itself". Because notification Message/Message HTML takes precedence over Email template Message / Message HTML.

 

Regards,

Chandresh

I have tried both ways, setting up the notification and using Plain text, setting the values that I want to report on the notification as displayed above in my initial question under the Message body section AND NOT under Message HTML section.  

I also created a template and leveraged the section of the template that says Message Body AND NOT Message HTML, then on the notification I pointed to utilize the template.

Both result in an email that is viewable in our logs as blank message AND we have our DEV environment pass the email notification through Exchange into a dedicated mailbox we use for testing.  The message body there also comes up blank.

 

So any other ideas?

Did you find any solution to your problem? I am also facing the same.

piyushsain
Tera Guru
Tera Guru

Hi,

In the logs it will show you empty body as body is of HTML type in the logs, check headers if that has the plain text data, also please test it by sending it to yourself, most probably it will send you the email in plain text with the required format you created.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain