Images not shown in mails sent from Znuny

Moderator: crythias

Post Reply
martinv2
Znuny newbie
Posts: 20
Joined: 30 Jun 2014, 14:49
Znuny Version: 6.4.4
Real Name: Martin Vorländer
Company: PDV-Systeme GmbH
Contact:

Images not shown in mails sent from Znuny

Post by martinv2 »

Hi!

When a mail that contains images is sent by an agent, the mail body contains a tag like

Code: Select all

<img alt="" height="..." width="..." src="https://OTRS_HOST/otrs/index.pl?Action=AgentTicketAttachment;Subaction=HTMLView;TicketID=...;ArticleID=...;FileID=.." />
However, when the mail is opened in an email client this URL is not valid without logging in as an agent - which means the image will not be shown.

Is there a way to tell Znuny to embed images into mails?

Znuny 6.4.4, Ubuntu 20.0.4, MariaDB 10.3.39, Perl 5.30.0

TIA,
Martin
Znuny 6.4.4, Ubuntu 20.04.5 LTS with MariaDB 10.3.37
hkais
Znuny wizard
Posts: 357
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Images not shown in mails sent from Znuny

Post by hkais »

martinv2 wrote: 28 Apr 2025, 11:01 Is there a way to tell Znuny to embed images into mails?
Afaik no

But your issue sounds odd to me.
Do you reference images on your Znuny host? Since you name OTRS_HOST in the src=

Can you elaborate what you are doing here?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
joergflorian
Znuny newbie
Posts: 36
Joined: 08 Jul 2021, 08:05
Znuny Version: 6.5.8 LTS
Real Name: Florian

Re: Images not shown in mails sent from Znuny

Post by joergflorian »

I see a similar behavior in Znuny 6.5.x.
When selecting and copying text and pictures from an article (or a FAQ entry) and paste it to a reply, the receiver does not see the pictures in his E-Mail as Znuny does not attach/embed the pictures.

Pretty odd sometimes.

Best regards
Florian
hkais
Znuny wizard
Posts: 357
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Images not shown in mails sent from Znuny

Post by hkais »

joergflorian wrote: 09 May 2025, 07:30 I see a similar behavior in Znuny 6.5.x.
When selecting and copying text and pictures from an article (or a FAQ entry) and paste it to a reply, the receiver does not see the pictures in his E-Mail as Znuny does not attach/embed the pictures.
you refer copy and pasting, this maybe an issue with the WYSIWYG editor
And it could also be related to my issue here: viewtopic.php?t=44421

can you check tihs too and reply to the other thread too?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
joergflorian
Znuny newbie
Posts: 36
Joined: 08 Jul 2021, 08:05
Znuny Version: 6.5.8 LTS
Real Name: Florian

Re: Images not shown in mails sent from Znuny

Post by joergflorian »

hkais wrote: 09 May 2025, 11:13
joergflorian wrote: 09 May 2025, 07:30 I see a similar behavior in Znuny 6.5.x.
When selecting and copying text and pictures from an article (or a FAQ entry) and paste it to a reply, the receiver does not see the pictures in his E-Mail as Znuny does not attach/embed the pictures.
you refer to copy and pasting, this maybe an issue with the WYSIWYG editor
And it could also be related to my issue here: viewtopic.php?t=44421

can you check tihs too and reply to the other thread too?
I'm not sure if this is the same topic. My issue is that when I copy an image from an article and paste it into a reply to a customer, it seems to insert it with a local path and is not embedding the picture. As a result, the customer can not see the pictures as it's path points to an absolute path in the Znuny system.

When I copy a picture and check the source in the editor, it shows something like that

Code: Select all

<img alt="Logo XYZ" src="https://znunysystem/otrs/index.pl?Action=AgentTicketAttachment;Subaction=HTMLView;TicketID=35910;ArticleID=146656;FileID=2" />
Addition: When I copy an image, e.g. from the Windows explorer or a screen capture tool and paste it into a reply, the picture is correctly embedded.
Or at least it is doing something different:

Code: Select all

<img alt="" height="294" src="/otrs/index.pl?Action=PictureUpload;FormID=1747662626.6326339.37096747;ContentID=inline339778.85096994.1747662626.6326339.37096747@xx.xx.xx.xx" width="500" />
Last edited by joergflorian on 19 May 2025, 15:52, edited 3 times in total.
martinv2
Znuny newbie
Posts: 20
Joined: 30 Jun 2014, 14:49
Znuny Version: 6.4.4
Real Name: Martin Vorländer
Company: PDV-Systeme GmbH
Contact:

Re: Images not shown in mails sent from Znuny

Post by martinv2 »

hkais wrote: 06 May 2025, 14:22 But your issue sounds odd to me.
Do you reference images on your Znuny host? Since you name OTRS_HOST in the src=
This was just meant to be a placeholder for the host name of the Znuny system.
Can you elaborate what you are doing here?
As Florian wrote: when an agent composes a ticket reply in Znuny's web UI, and copy&paste's an image into it, the mail sent contains an IMG tag with a SRC URL pointing into the Znuny system - which is only accessible when logged in.

cu,
Martin
Znuny 6.4.4, Ubuntu 20.04.5 LTS with MariaDB 10.3.37
Post Reply