Page 1 of 1

email address requirement

Posted: Fri May 04, 2012 7:28 pm
by MDavison
Is there a way to disable the requirement to enter an email address for each ticket? We do most of our support via phone and don't want to have to enter an email addresss

Re: email address requirement

Posted: Sat May 05, 2012 6:14 am
by Klemen
You would have to modify the source code a bit to allow that.

In file "inc/common.inc.php" find

Code: Select all

function hesk_validateEmail($address,$error,$required=1) {
and just below that paste

Code: Select all

        /* Set email to empty@email.com if none is given */
        if ($address == '')
        {
        return 'empty@email.com';
        }
Then in "inc/email_functions.inc.php" just below

Code: Select all

function hesk_mail($to,$subject,$message) {
add

Code: Select all

if ($to == 'empty@email.com')
{
return false;
}

Re: email address requirement

Posted: Tue May 15, 2012 3:26 am
by dr_patso
hey after doing the above recommendation you can remove lines 126 and 127 in /admin/new_ticket.php file (the lines containg email_ to get rid of the field entirely,

/admin/new_ticket.php

Re: email address requirement

Posted: Mon May 06, 2013 3:42 pm
by MDavison
This worked in the previous version, but in 2.4.2, after these edits, it still gives a requirement to add the email address.

Re: email address requirement

Posted: Thu May 09, 2013 4:38 pm
by Klemen
Should work in 2.4.2 too, but make sure you have Confirm email setting to OFF (admin panel > Settings > Email tab > Other > uncheck "Confirm email")