Display embedded Images at Ticket Creation

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
randomjoe
Posts: 2
Joined: Mon Nov 11, 2024 1:14 pm

Display embedded Images at Ticket Creation

Post by randomjoe »

Script URL:

https://www.phpjunkyard.com/extras/phpinfo.zip
https://www.phpjunkyard.com/extras/session_test.zip
Version of script: latest as of today
Hosting company:
On-Premise - Windows Server 2022

URL of phpinfo.php: On-Premise (only local access)
This is a lot of info, how to share this with you?

This is the status of the core elements:
Image

URL of session_test.php: On-Premise (only local access)
PHP Session works correctly. OK


What terms did you try when SEARCHING for a solution:
Embedded Image and comparable terms

Write your message below:


Hi all,

i'm not the one that set this Helpdesk up, but the one put in charge to optimize it.
We are experiencing the Problem that embedded Images when sent to our support@m365.email (IMAP-Import from M365 works fine.)
are not been displayed.

I've come to know, that the option below was activated (deactivated as of now) but after changing it, it will still append embedded
Images as an Attachement.

Image

I've also checked that "Attachements" are by default allowed, which is fine for anything but embedded Images:

Image

What i'm trying to achieve here:



Is it possible to show "embedded Images" as such and not make attachements out of them?
Is it possible to still allow attached files while displaying embedded Images?


Thank you for your help in advance, i guess there must be another Option somewhere, that needs to be checked
but without any further knowledge this seems quite hard atm :)


Best Regards, Joe
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: Display embedded Images at Ticket Creation

Post by Klemen »

Anything that comes from an email is not trusted by Hesk. This includes HTML and embedded files. Customers are only allowed to submit plain text to Hesk.

As a result, Hesk will always try to display plain text versions of any email messages and save embedded files as attachments. Unfortunately, there is no built-in way around this.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
randomjoe
Posts: 2
Joined: Mon Nov 11, 2024 1:14 pm

Re: Display embedded Images at Ticket Creation

Post by randomjoe »

Hi Klemen, thanks for your quick reply.

Is there an "unsupported workaround" for this which is worth testing, just for inline/embedded Images?
Or is it not worth going down that route?

I guess it would be possible to "edit" the post afterwards of the created ticket but this would still mean
download Image + insert image + save.

I guess the only other way around this, is bringing the customers to create Tickets from within the helpdesk, instead of just sending an E-Mail using
Outlook?



Best Regards, Joe
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: Display embedded Images at Ticket Creation

Post by Klemen »

None that I know of.

You would have to modify the hesk_email2ticket function logic inside /inc/pipe_functions.inc.php (and related files) to either accept and sanitize HTML messages or embed files into the ticket message.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply