Script URL: 2.2
Hello,
I would want that an email in copy to all the staff arrived when the staff it answers to the customer, is possible?
thank you,
email to staff and client
Moderator: mkoch227
Re: email to staff and client
No need for dupliate posts.
From the "READ THIS BEFORE POSTING" post: "Questions like Is this possible? How? will usually be ignored. Almost anything is possible with PHP/HTML/MySQL knowledge and we are not here to provide free programming services to individuals. Try it yourself, ask a friend that knows PHP, ... "
Please remember that in the future, but you can try posting this code in your admin/admin_reply_ticket.php Paste it just BELOW
From the "READ THIS BEFORE POSTING" post: "Questions like Is this possible? How? will usually be ignored. Almost anything is possible with PHP/HTML/MySQL knowledge and we are not here to provide free programming services to individuals. Try it yourself, ask a friend that knows PHP, ... "
Please remember that in the future, but you can try posting this code in your admin/admin_reply_ticket.php
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)
{
/* Format e-mail message for staff */
$msg = hesk_getEmailMessage('new_ticket_staff',$ticket,1);
/* Send e-mail to staff */
$email=implode(',',$admins);
mail($email,$hesklang['new_reply_staff'],$msg,$headers);
}
Code: Select all
@mail($ticket['email'],$hesklang['new_reply_staff'],$msg,$headers);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: email to staff and client
thank you klemen.
Re: email to staff and client
not work klemen... 

Re: email to staff and client
How about if you delete from the SQL code?
Code: Select all
WHERE `notify_new_unassigned`='1'
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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