Skip to main content

Hello,

Do you have any information on the suitable, compatible HTML format that we should use in the Email Body section for Application Server Tasks? I've noticed that standard HTML formats don't seem to work.

 

My attempts:

Hello, </ br> Fatih Temiz </ br> Best regards.

 

<b>This text is bold</b>

 

<html>
<head>
<title>Fatih Temiz</title>
</head>
<body>
Merhaba
</body>
</html>

Error: Unexpected event type ySTART_ELEMENT] when reading element text content at 1:239] 
Caused by: ifs.fnd.base.ParseException: Unexpected event type tSTART_ELEMENT] when reading element text content at t1:239]

 

 

Our IFS Turkey consultants have said that they do not have clear information on the subject and that they will conduct research on the matter.

 

I would greatly appreciate your valuable insights or support.

Best regards.

Hi @fatih.temiz,

You are probably getting this error because you have included the tags such as <html>, <title>, <body> etc. 

When formatting the message body, consider that all things are inside the <body></body> HTML tag. 

Have a look at below example:

Event Action configuration
Resulting Email

 

In the Event Action configuration, notice that the Mail Sender is set as MailSender1. In the Mail Sender configuration, please make sure the content type is set to text/html as shown in below article as well:

Hope this helps!


Hi @Charith Epitawatta , 

Thank you for your response. However, I want to write an HTML for application server tasks, not for an event. When I wrote HTML as you specified, I received the following error.

 


Hi did you get this resolved? I am getting the exact same error.

Regards Jon  


Unfortunately, it hasn't been resolved. I couldn't find anyone who could help. Actually, if the application code were debugged, the correct HTML format could be captured from there.


Hello @fatih.temiz,

Just change “Content Type” to “text/html” in your mail sender at “Setup IFS Connect”.

Then u can try one more time.

If the html block doesnt works in application server and works in event action mail it could be limitation of Application Server Task module. This module has so many limitation actually.

Last option: U can write what u want in database level with html blocks and using command_sys.mail procedure, so it would be table format etc.


Hello @0guz  :)

Is there any other parameter that affects IFS’s ability to support HTML tags?

IFS crashes if I put any HTML statement inside the body text field, even though set ‘text/html’ on IFS connect.


Reply