Page 1 of 1

Copy emails to administrator

Posted: Mon Mar 25, 2013 5:21 pm
by mqcarpenter
HESK version: 2.4.2 - Check for updates
PHP version: 5.2.17
MySQL version: 5.5.30-cll

What terms did you try when SEARCHING for a solution:
email, carbon copy, CC,
Write your message below:

I would like two things. It should be easy so I thought someone else had done this. I would like to copy a team email address for all assigned tickets so they see that they were assigned. a simple CC to the help desk, so to speak. I tried this, but it does not seem to work in the email_functions.inc.php:

Code: Select all

   /* Generate message or add email to the list of recepients */
        	if ($admin['language'] == $current_language)
            {
            	/* We already have the message, just add email to the recipients list */
                $recipients[] = $admin['email'];
				$recipients[] = 'support@domain.com';
Also, I have noticed that replies and ticket closings are not copying the ticket owner. Is that a simple tweak to add too? It may just be discomfort with the process in the beginning and that may pass.

Re: Copy emails to administrator

Posted: Wed Mar 27, 2013 9:32 am
by Klemen
The easiest way to achieve #1 would probably be changing inc/email_functions.inc.php

Code: Select all

hesk_mail($autoassign_owner['email'], $subject, $message);
to

Code: Select all

hesk_mail($autoassign_owner['email'] . ', team@email.com', $subject, $message);
If a customer replies to a ticket the assigned owner does get notified and vice versa - if a staff replies to a ticket the customer is notified (not staff).