email address requirement

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
MDavison
Posts: 2
Joined: Fri May 04, 2012 7:26 pm

email address requirement

Post 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
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: email address requirement

Post 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;
}
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
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: email address requirement

Post 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
MDavison
Posts: 2
Joined: Fri May 04, 2012 7:26 pm

Re: email address requirement

Post 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.
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: email address requirement

Post 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")
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