Version of script: 2.3
What terms did you try when SEARCHING for a solution: email notify
Write your message below:
Hi, I want to notify all staff when a staff reply ticket. for more infomative.
Thanks.
email notify when staff answer
Moderator: mkoch227
Re: email notify when staff answer
I also wanted the functionality you are describing.
Here is now I did it.
First you need to create an email message to send to your staff. Create the email body you want to send to your staff. I used this:
Save this as new_reply_by_staff_notify.txt in /admin/language/en/emails
Then open admin/admin_reply_ticket.php
Find
Just below that paste this
Also find
Just below that paste this
Open /inc/email_functions.inc.php
Find
And change to
Open /admin/language/en/text.php and add (This is what will appear in the email subject line.)
Then you need to create a forwarding email that will send this email to all your staff, in the above code set "forwardingemail@domain.com to whatever forwarding email you create.
Hope this helps
Here is now I did it.
First you need to create an email message to send to your staff. Create the email body you want to send to your staff. I used this:
Code: Select all
One of our staff has replied to ticket number: %%TRACK_ID%%
Reply:
%%MESSAGE%%
You can manage this ticket here:
%%TRACK_URL%%
Then open admin/admin_reply_ticket.php
Find
Code: Select all
$msg = hesk_getEmailMessage('new_reply_by_staff',$ticket);
Code: Select all
$msg1 = hesk_getEmailMessage('new_reply_by_staff_notify',$ticket);
Code: Select all
hesk_mail($ticket['email'],$hesklang['new_reply_staff_notify'],$msg);
Code: Select all
hesk_mail('forwardingemail@domain.com',$hesklang['new_reply_staff_notify'],$msg1);
Find
Code: Select all
$valid_emails = array('category_moved','forgot_ticket_id','new_reply_by_customer','new_reply_by_staff','new_ticket','new_ticket_staff','ticket_assigned_to_you','new_pm');
Code: Select all
$valid_emails = array('category_moved','forgot_ticket_id','new_reply_by_customer','new_reply_by_staff','new_ticket','new_ticket_staff','new_reply_by_staff_notify','ticket_assigned_to_you','new_pm');
Code: Select all
$hesklang['new_reply_staff_notify']='One of our staff has replied to a ticket';
Then you need to create a forwarding email that will send this email to all your staff, in the above code set "forwardingemail@domain.com to whatever forwarding email you create.
Hope this helps
-Steve