As i see on Github, Mail is support HTML signature.
But how to set it?
I tried it in Account Setting -> Signature -> set to <b>TEST</b>.
Nothing happend, send the HTML as text.
Here is a picture from an email sent from Mail to my Thunderbird:
Did you literally put that there? This input field is a rich text editor. If you highlight TEST you get the option to make it bold. Is that what you were looking for?
As it seems you inserted HTML into an already formatted input, hence this got HTML-escaped and therefore showed as HTML in the target email.
We found a regression in our code. @Greta is working on this. Signatures are configured with a rich text editor, so we allow HTML formatting, but not any arbitrary input.
And just to be clear, I’ve seen the explanation of you using the editor and etc. But there are many question that come to mind then:
The “editor” is just a javascript pluggin that you grab the html generated and attach it to a mail object. Why can’t you just concat the message + the signature (untouch html code) ? It not like we “have” to be forced to use the editor to create a html signature and therefore end-up with non optimised html markup right ?
Then secondly, html can easily be sanitized in PHP using strip_tags() (simple/double encoded verification etc), so I don’t see why we couldn’t be just using a pure html code block, with basic table, div, br, b, i, span, etc ?
HTML E-Mail Signature would be a great feature, because adding some signature-pics would also be possible with base64 encoding and lots of users would need that!
Why not simply use a remote image instead attaching it directly to the mail in whatever way?
In first place i think it’s enough to just allow HTML, so users are able to add the <img src="https://mysite.com/logo.png">
And maybe add a logo upload field later and store the image in a public folder on the NC server.
Our company using it like this since years (in Thunderbird & Outlook), without a problem. Maybe it’s a problem if the image is served by another server, as the mail server where the mail has sent from? Never tried.
So if I understand correctly the mail editor doesn’t know how to handle HTML so the NEXTCLOUD mail application can’t be used in a professional world because most companies use HTML signatures.