Copy emails to administrator

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
mqcarpenter
Posts: 11
Joined: Mon Mar 25, 2013 5:17 pm

Copy emails to administrator

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

Re: Copy emails to administrator

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