email

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
SA
Posts: 2
Joined: Tue Nov 11, 2008 8:51 pm

email

Post by SA »

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:

Hi

My question regarding the email, I don't want the users to write the full email.
For example: the user has email (12345@domain name.com) so I prefer user to write just (12345) and the system will complete the email itself, because the domain name is the same for all.
I hope you get it.


Thanks a lot
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In submit_ticket.php try changing

Code: Select all

$email=hesk_validateEmail($_POST['email'],'ERR',0) or $hesk_error_buffer[]=$hesklang['enter_valid_email'];
to

Code: Select all

$email=hesk_input($_POST['email'],'ERR',0) or $hesk_error_buffer[]=$hesklang['enter_valid_email'];
$email.='@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
SA
Posts: 2
Joined: Tue Nov 11, 2008 8:51 pm

Post by SA »

It works

Thanks a lot :D
Post Reply