Notifications

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
ruffmeister
Posts: 48
Joined: Wed Jun 16, 2010 2:52 pm

Notifications

Post by ruffmeister »

is there a way to turn off email notifications on a new PIPED email only from POP3?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Notifications

Post by Klemen »

Haven't tested it, but something like this might work:

1. in hesk_pop3.php add

Code: Select all

define('POP3',1);
somewhere at the top (for example after other "define(" lines).

2. in inc/pipe_functions.inc.php change

Code: Select all

hesk_notifyCustomer();
to

Code: Select all

if ( ! defined('POP3') ) 
{
hesk_notifyCustomer();
}
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

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' ");
	}
so it becomes

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 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