Notifications
Moderator: mkoch227
-
- Posts: 48
- Joined: Wed Jun 16, 2010 2:52 pm
Notifications
is there a way to turn off email notifications on a new PIPED email only from POP3?
Re: Notifications
Haven't tested it, but something like this might work:
1. in hesk_pop3.php add somewhere at the top (for example after other "define(" lines).
2. in inc/pipe_functions.inc.php change to
This will not send email notifications to the customer. If you want to turn off notifications for staff as well, wrap the same if statement around so it becomes
1. in hesk_pop3.php add
Code: Select all
define('POP3',1);
2. in inc/pipe_functions.inc.php change
Code: Select all
hesk_notifyCustomer();
Code: Select all
if ( ! defined('POP3') )
{
hesk_notifyCustomer();
}
Code: Select all
if ($tmpvar['owner'] && $autoassign_owner['notify_assigned'])
{
hesk_notifyAssignedStaff($autoassign_owner, 'ticket_assigned_to_you');
}
// --> No autoassign, find and notify appropriate staff
elseif ( ! $tmpvar['owner'] )
{
hesk_notifyStaff('new_ticket_staff', " `notify_new_unassigned` = '1' ");
}
Code: Select all
if ( ! defined('POP3') )
{
if ($tmpvar['owner'] && $autoassign_owner['notify_assigned'])
{
hesk_notifyAssignedStaff($autoassign_owner, 'ticket_assigned_to_you');
}
// --> No autoassign, find and notify appropriate staff
elseif ( ! $tmpvar['owner'] )
{
hesk_notifyStaff('new_ticket_staff', " `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