Page 1 of 1

Adding a Carbon Copy Email to tickets

Posted: Thu Jul 31, 2014 11:25 am
by matthew01
Hi Guys,

Is their away to add a carbon copy permanent email address to all emails that get sent as our management team would like to a to have a copy of all messages sent from the helpdesk system when a job is submitted, support person replied to the email and when it was resolved.

Currently if a person submits a helpdesk request it goes to an email address all techs have access to, but management want to cc a different mailbox for their records as well as keeping an eye on things.

Matthew

Re: Adding a Carbon Copy Email to tickets

Posted: Fri Aug 01, 2014 8:05 am
by Klemen
The easiest way would be to modify find all occurrences of

Code: Select all

hesk_mail(
in file inc/email_fucntions.inc.php then:

1. If the line that starts with hesk_mail( replace

Code: Select all

, $subject
with

Code: Select all

 . ',management@domain.com', $subject
2. ignore the line that starts with the word function

This should add management@domain.com to the list of recipients, but it will be in "To:" ranter than "Cc:". To add them to "Cc:" it would require more modifications/hacks so it is out of the scope of my support.

Re: Adding a Carbon Copy Email to tickets

Posted: Tue Aug 05, 2014 11:03 pm
by matthew01
Hi Klemen,

Before I upload this modified file into my hesk install can you please take a quick look and make sure I have put the new code correctly into the places its needed.

Matthew

(REMOVED)

Re: Adding a Carbon Copy Email to tickets

Posted: Wed Aug 06, 2014 7:43 am
by Klemen
You need to be careful when making changes to the code and follow instructions precisely:

1. there should be no comma before

Code: Select all

. ',management@domain.com'
Lines 65 you have:

Code: Select all

$ticket['email'],. ',management@domain.com'
It should be:

Code: Select all

$ticket['email']. ',management@domain.com'
Same for line 107

2. second instruction said to ignore the line that starts with the word "function", so no modifications to line 250

Try again and make sure you have a backup of the old file before testing.