email of notification every to staff

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
wedlock
Posts: 19
Joined: Sun Feb 08, 2009 10:43 am

email of notification every to staff

Post by wedlock »

Version of script: 2.2

Write your message below:

I love love love Hesk.
Used the last version for years and loved it, and now I love 2.2. Thanks so much for all your work.

I would want that every email of notification sent to the customer arrives also to all the members of the staff, therefore to every answer. Currently if the staff it answers it only arrives to the customer.

Thanks again.
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: email of notification every to staff

Post by Klemen »

Thanks for the kudos.

For the second part, this might be a bit tricky. If I understood correctly, see if this works for you:

1. open admin/admin_reply_ticket.php in Notepad

2. just ABOVE

Code: Select all

/* Send e-mail */
add this

Code: Select all

$admins=array();
$sql = "SELECT `email`,`isadmin`,`categories` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."users` WHERE `notify_new_unassigned`='1'";
$result = hesk_dbQuery($sql);
while ($myuser=hesk_dbFetchAssoc($result))
{
	/* Is this an administrator? */
	if ($myuser['isadmin'])
	{
		$admins[]=$myuser['email'];
		continue;
	}

	/* Not admin, is he allowed this category? */
	$myuser['categories']=explode(',',$myuser['categories']);
	if (in_array($tmpvar['category'],$myuser['categories']))
	{
		$admins[]=$myuser['email'];
		continue;
	}
}
if (count($admins)>0)
{
	$orig_email.=','.implode(',',$admins);
}
I haven't tested it so make sure you backup existing files.
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
wedlock
Posts: 19
Joined: Sun Feb 08, 2009 10:43 am

Re: email of notification every to staff

Post by wedlock »

hello,
.. not work ..

I reassume...
I wanted that when a member of the staff answers an email besides the customer to all the members of the staff arrived.. every.
Post Reply