I have wordpress site where contact us form sends email to info@axxx.org.uk. This email is auto-forwarded to pipe.php (details provided in code below) which creates a support Ticket using OSTicket

_This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
pipe to |/home/axxx/public_html/support/api/pipe.php
generated by info@axxx.org
local delivery failed_

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

pipe to |/home/axxx/public_html/support/api/pipe.php
generated by info@axxx.org
local delivery failed

#!/usr/bin/php -q
<?php
/*********************************************************************
pipe.php

Converts piped emails to ticket. Just local - remote must use /api/tickets.email

Peter Rotich <peter@osticket.com>
Copyright (c)  2006-2013 osTicket
http://www.osticket.com

Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.

vim: expandtab sw=4 ts=4 sts=4:

**********************************************************************/
ini_set('memory_limit', '256M'); //The concern here is having enough mem for emails with attachments.
@chdir(dirname(FILE).'/'); //Change dir.
require('api.inc.php');

//Only local piping supported via pipe.php
if (!osTicket::is_cli())
die(__('pipe.php only supports local piping - use http -> api/tickets.email'));

require_once(INCLUDE_DIR.'api.tickets.php');
PipeApiController::process();
?>

Is the second post altered and fixed your issue?

Write a Reply...