"Coloring" email recepient address based on a Notes Database?

Hi,my company uses MTLS for email encryption. Since we do not have set up MTLS with all our partners right now, I am looking for a way to inform the user wrtiging ab email wether the mail will be “safe” or not.

Usecase is:

there is a notes database holding all the domains where MTLS is in place. A “plugin” (or whatever) checks for every email adress that is typed in in the “to” or “cc” or “bcc” field if the domain is in this database. If not, the email address is marked in red (red background color or red font color). If it is it is marked in green.

So the user know before he sends the mail if it will be “safe” or not - and he can choose other encryption methods if needed.

Now the question:

how could this be done? What is the way to doing this? I’ve seen using CSS to set up styles, but this is not really a style thing I am looking for.

Thanks in advance,

Marc