Adding a Carbon Copy Email to tickets

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
matthew01
Posts: 4
Joined: Wed Nov 06, 2013 12:31 pm

Adding a Carbon Copy Email to tickets

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Adding a Carbon Copy Email to tickets

Post 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.
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
matthew01
Posts: 4
Joined: Wed Nov 06, 2013 12:31 pm

Re: Adding a Carbon Copy Email to tickets

Post 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)
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Adding a Carbon Copy Email to tickets

Post 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.
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