Skip to main content
Question

Application Server Tasks - Email Body


Forum|alt.badge.img+5

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 [START_ELEMENT] when reading element text content at [1:239] 
Caused by: ifs.fnd.base.ParseException: Unexpected event type [START_ELEMENT] when reading element text content at [1: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.

7 replies

Charith Epitawatta
Ultimate Hero (Employee)
Forum|alt.badge.img+31

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:

https://community.ifs.com/framework-and-experience-101/does-ifs-allow-html-based-emails-when-handling-pdf-report-created-event-2489

Hope this helps!


Forum|alt.badge.img+5
  • Author
  • Sidekick (Customer)
  • 8 replies
  • August 29, 2023

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.

 


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 2 replies
  • October 2, 2023

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

Regards Jon  


Forum|alt.badge.img+5
  • Author
  • Sidekick (Customer)
  • 8 replies
  • October 3, 2023

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.


0guz
Hero (Employee)
Forum|alt.badge.img+10
  • Hero (Employee)
  • 64 replies
  • October 22, 2023

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.


uaksoy
Do Gooder (Customer)
Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 8 replies
  • May 8, 2024

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.


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 1 reply
  • January 23, 2025
fatih.temiz wrote:

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,

Were you able to resolve this?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings