Page 1 of 1

Piping options?

Posted: Thu Apr 28, 2016 10:38 am
by tdiaz
Are there any options that can be passed with email piping, such as determining the category, sender, reply to, etc.

I'm starting from another form and want to create a categorized ticket on behalf of that user (form submission). If I send a message to HESK it just creates a generic ticket with the raw contents of the email in the form.

I can populate everything the way I need it with http $post, but I'm trying to do this myself, not redirect the user to pre-populated web form for them to have to submit it.

In other words, is it possible to pre-define all those things that you can with $post url encoding, except through piping, so tickets can be generated based on input from another source?

Re: Piping options?

Posted: Thu Apr 28, 2016 11:41 am
by Klemen
Well the easiest way to do it would be to:

1. create a copy of hesk_pipe.php
2. ticket category and priority can be modified inside it (see under OPTIONAL MODIFICATIONS inside the copied file)
3. pipe your form to the copied file

If you want any further or more specific modifications you will need to dive into the source code.

Re: Piping options?

Posted: Wed May 04, 2016 7:58 am
by tdiaz
Thanks. I wasn't totally sure to what detail piping. Now I know where to start. Parse the first line of the email message similarly to how $post is handled.

Is the entire process handled within hesk_pipe.php? Could I use a duplicate, and email to which ever one I want?

Re: Piping options?

Posted: Fri May 06, 2016 2:31 pm
by Klemen
You can use as many copies as you need.