Mail template - text for encrypted and signed mail

We have a problem with the mail template.

In case you encrypt or sign mail a text paragraph appears in read mode that says that the mail is either encrypted/signed or a combination.

The text is divided over 3 text paragraphs with hide when formulas applied.

The text works fine for mail send via Notes, but when send via SMTP the text by default is hidden and when you press the Show Details hotspot the text appears.

Underneath the hotspot a refreshhidewhen action formula is executed.

The text is standard from the mail template.

What can be wrong? And why does the text appear after selecting the Show Details action?