mail icon indicating copy to clipboard operation
mail copied to clipboard

Broken HTML signature Mail 5.1.3 links and images not working

Open PeopleInside opened this issue 6 months ago • 3 comments

Steps to reproduce

  1. go to an HTML editor that convert HTML source to a visual signature (as badly Mail doesn't support HTML source edit or input); you can use https://htmledit.squarefree.com/ or https://onlinehtmleditor.dev/

The HTML source of the signature you need to test is:

<a href="https://demo.livehelperchat.com" target="_blank" rel="noopener noreferrer">
  <img 
    src="https://demo.livehelperchat.com/site_admin/restapi/onlineimage?&online=I'm%20online&offline=I'm%20offline&w=200" 
    alt="Chatta con noi"
    style="display: block; margin: 0 auto; cursor: pointer;" />
</a>

The result will be an image that is clickable (that has a link that open if clicked):

Image

  1. copy this signature into Mail app
  2. Send an email and you will see that the image has no link and maybe is also not aligned on the center Also if you try to insert a link in this image in the editor on Mail signature editor page you can't

Expected behavior

Pasted signature should work as expected as in the external editor so the result for the example above should be an image that is centred, clickable and that open a link

Actual behavior

In the signature editor if you paste the signature above you cannot insert a link because all editor button are disabled.

Image

So two issues: pasted HTML signature is pasted broken with the image that miss a link. Also if is showed centred will be not centred when email is sent and link is missing. Also in the editor is no more possibile use the link button to add a link as showed in the above screenshot

Mail app version

5.1.3

Nextcloud version

3.1.0.5

Mailserver or service

personal one custom domain

Operating system

Ubuntu 22.04.5 LTS

PHP engine version

Other

Nextcloud memory caching

No response

Web server

Other

Database

MariaDB

Additional info

https://github.com/nextcloud/mail/issues/11260#issuecomment-2965552441

PeopleInside avatar Jun 12 '25 08:06 PeopleInside

Thank you for your report.

The broken image should be fixed once we have external images support. It's possibly coming with https://github.com/nextcloud/mail/pull/11160.

ChristophWurst avatar Jun 17 '25 12:06 ChristophWurst

Thank you but what about the image is not aligned and miss the link when the email is sent? In the sent email the image miss the center and also the link. I hope this will get fixed as well.

The image is showed when an email is sent but the center and the link still get broken.

PeopleInside avatar Jun 17 '25 13:06 PeopleInside

Thank you for your feedback

ChristophWurst avatar Jun 17 '25 13:06 ChristophWurst

Hi, how are you? I hope you are well. I tested Mail version 5.3.1 and I confirm the issue with the script inclusion in HTML email still not working correctly. The Live Chat Button is not centred and miss the link.

It will be useful also have a source HTML button to edit the source.

PeopleInside avatar Aug 24 '25 12:08 PeopleInside

It will be useful also have a source HTML button to edit the source.

Tracked in https://github.com/nextcloud/mail/issues/11309

ChristophWurst avatar Aug 25 '25 05:08 ChristophWurst