Welcome to WebmasterWorld Guest from 54.167.213.22

Forum Moderators: bakedjake

Message Too Old, No Replies

Forwarding Email to Script Causes Bounce

Script work but also causes bounce

     
6:09 pm on Feb 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok...so I have an email setup at example@example.com

I have a forwarder setup so that when an order is made, an email sent to example@example.com gets forwarded to the script.

The code for the forwarder in cpanel is

"¦php /home/USERNAME/public_html/path/to/handler.php > /dev/null 2>&1"

Everything works perfectly..sort of.

The email gets forwarded, the script executes and works as planned. Unfortunately, after that, I also get a bounce message stating..

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 ¦php /home/USERNAME/public_html/path/to/handler.php > /dev/null 2>&1
generated by example@example.com

The following text was generated during the delivery attempt:

------ pipe to ¦php /home/USERNAME/public_html/path/to/handler.php > /dev/null 2>&1
generated by example@example.com ------

X-Powered-By: PHP/4.4.4
Content-type: text/html

I am having a heck of a time trying to suppress the message.

Any ideas?

7:38 pm on Feb 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nevermind...figured it out finally.

just needed to add -q to the forward instructions

"Šphp -q /home/USERNAME/public_html/path/to/handler.php"

 

Featured Threads

Hot Threads This Week

Hot Threads This Month