Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Good day,
I have used the hesk system for a year and half now, i love it so much. I have a one problem though, my organisation is an academic institution and our clients are staff and students only. All of them have academic email addresses and would like the system to limit ticket creation to people with the academic emails.
Meaning only people with the emails with the domain academicinstitution.edu can create a ticket.
Thank you in advance
Limit ticket creation to specific emails e.g same domain
Moderator: mkoch227
-
- Posts: 1
- Joined: Tue Dec 10, 2013 6:44 am
Re: Limit ticket creation to specific emails e.g same domain
You didn't write what version of HESK you are using, but in 2.5.2 edit submit_ticket.php
Find line
Just below that line add something like
Find line
Code: Select all
$tmpvar['email'] = hesk_validateEmail( hesk_POST('email'), 'ERR', 0) or $hesk_error_buffer['email']=$hesklang['enter_valid_email'];
Code: Select all
if ( strpos( strtolower($tmpvar['email']), '@academicinstitution.edu') === false )
{
$hesk_error_buffer['email']="Please use your @academicinstitution.edu email address!";
}
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
Re: Limit ticket creation to specific emails e.g same domain
Thank you so much, worked like a charm.
Cheers from Chile.
Cheers from Chile.