Page 1 of 1

email

Posted: Tue Nov 11, 2008 9:26 pm
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

Posted: Sat Nov 15, 2008 9:17 am
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';

Posted: Sun Nov 16, 2008 6:44 am
by SA
It works

Thanks a lot :D