how to Accept only my domin?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
assaeed
Posts: 1
Joined: Thu Oct 25, 2012 5:45 am

how to Accept only my domin?

Post by assaeed »

i need to Accept only my domin email in Submit a ticket :?:
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: how to Accept only my domin?

Post 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';
}
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