Page 1 of 1

Hesk Email to Ticket - Pipe

Posted: Wed Nov 26, 2014 1:19 pm
by Greiling
Hello,

i have a problem with the pipe.

This is my hesk_piep.php

define('IN_SCRIPT',1);
define('HESK_PATH', dirname(dirname(dirname(__FILE__))) . '/');

// Get required files and functions
require(HESK_PATH . 'hesk_settings.inc.php');
require(HESK_PATH . 'inc/common.inc.php');

// Is this feature enabled?
if (empty($hesk_settings['email_piping']))
{
die($hesklang['epd']);
}

// Email piping is enabled, get other required includes
require(HESK_PATH . 'inc/pipe_functions.inc.php');

// Parse the incoming email
$results = parser();

// Convert email into a ticket (or new reply)
hesk_dbConnect();
hesk_email2ticket( $results );

return NULL;

Question: Why the messages are not converted into tickets. Just one week ago everything worked fine.

I have a connection to the database and connect to the mailbox. Both things working fine.


Is there any way the messages manually insert in the ticket system.


I need you HELP Pls :(

MfG Greiling

Re: Hesk Email to Ticket - Pipe

Posted: Wed Nov 26, 2014 4:11 pm
by Klemen
Are you using email piping or POP3 fetching? These are two different things.

Email piping doesn't require any connection to any mailbox. Instead, your server needs to be setup to send emails directly to the hesk_pipe.php script. If there are errors delivering mail to the PHP script, you normally get a returned email with details about the problem.
http://www.hesk.com/knowledgebase/index.php?article=58

POP3 fetching requires a valid email account connection and a scheduled task (Cron job) to run every 5 minutes to fetch emails. For debugging, turn on debug mode in HESK settings and try manually running the "inc/mail/hesk_pop3.php" script in your browser to see if you get any error messages.
http://www.hesk.com/knowledgebase/index.php?article=65

Either way note that HESK will ignore emails with no message and duplicate messages (for example 2 messages with same subject and content sent within 5 minutes, only the first message will be accepted).

Re: Hesk Email to Ticket - Pipe

Posted: Wed Nov 26, 2014 4:12 pm
by Klemen
P.s.: if it worked fine then stopped suddenly, something has changed on the server settings, not inside HESK.