How can I receive emails from only specific users for piping

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
anwarkc
Posts: 1
Joined: Wed Mar 27, 2013 6:45 am

How can I receive emails from only specific users for piping

Post by anwarkc »

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

Re: How can I receive emails from only specific users for pi

Post by Klemen »

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

Code: Select all

	if ( ! $tmpvar['email'] )
	{
		return NULL;
	}
add something like

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 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