I want to do the email piping for creating automatic tickets when the user sends a request to one particular email ID.
My problem is I receive lot of SPAM emails on that email ID and every time a new ticket is created. How do I stop this? Or can I accept emails from only specified Email IDs on the pipe?
PLEASE HELP!!!!!!!!!!!!!!!
How can I receive emails from only specific users for piping
Moderator: mkoch227
Re: How can I receive emails from only specific users for pi
You obviously need a strong anti-spam filter enabled on the server. HESK doesn't filter incoming mails for SPAM (it's way out of the scope of what it does), the server is responsible for scanning incoming mail.
If you only want to accept pipe from certain emails, you could try modifying inc/pipe_functions.inc.php - just below add something like
If you only want to accept pipe from certain emails, you could try modifying inc/pipe_functions.inc.php - just below
Code: Select all
if ( ! $tmpvar['email'] )
{
return NULL;
}
Code: Select all
$allowed_emails = array('me@you.com', 'this@that.com', 'john@doe.com');
if ( ! in_array( strtolower($tmpvar['email']) , $allowed_emails) )
{
return NULL;
}
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