Page 1 of 1

how to Accept only my domin?

Posted: Thu Oct 25, 2012 6:01 am
by assaeed
i need to Accept only my domin email in Submit a ticket :?:

Re: how to Accept only my domin?

Posted: Thu Oct 25, 2012 8:31 am
by Klemen
In submit_ticket.php if you find

Code: Select all

if ($hesk_settings['confirm_email'])
and add something like this ABOVE that line it should work:

Code: Select all

if (strpos($tmpvar['email'],'@yourdomain.com') === false)
{
	$hesk_error_buffer['email']='We only accept emails from @yourdomain.com';
}