Page 1 of 1

Hidden link by clicking on the file name (attachments)

Posted: Mon Mar 04, 2019 8:40 am
by HeskPro
Hi. At the moment, the following is implemented:
When you send a notification about a new ticket with a file (attachments) to the employee's e-mail, a link to the file is displayed as follows:
File name and Link: very long link name......
How to make when you click on File name you can download the file. Hyperlink by clicking on the file name.
What to change in the email_function file.inc.php on line 1143 :

Code: Select all

$msg .= "\n\n". $att_name. "\n". $hesk_settings['hesk_url'] . '/download_attachment.php?att_id='.$att_id.'&track='.$ticket ['trackid'].$hesk_settings['e_param']; 
Need <a hesk_url.... > $att_name. < / a>
How to implement it?

Re: Hidden link by clicking on the file name (attachments)

Posted: Mon Mar 04, 2019 8:45 am
by Klemen
You need HTML emails for that. Hesk currently doesn't support them (uses plain text).

You can try using Mods for Hesk (it supports HTML emails) or modify the code yourself to support HTML emails (if you are experienced in PHP/HTML).