Hello,
First excuse my English. It is not my mother tongue.
This is my first speech on this forum. Given my question, I do not know if I should put it in E-Mail or in PHP forum. Be understanding.
Here's my situation.
I'm the webmaster of a site, and my host uses DirectAdmin.
I created my email accounts by using the DirectAdmin Panel control. I've also create some alias that point to one or several POP3 accounts.
I am also the technical manager of the forum on my site (Simple Machine Forum (SMF)).
I know how to make a PHP program that creates a POST directly in the data base of my SMF forum. It works.
Here's my question (or my problem).
What I am trying to do is redirect ALL mails that come for ONE particular user to a PHP program. I have a small PHP program that exists and works. It creates a post in my database. I made it just to test if I can activate it by receiving a mail. I managed to activate it, using a cron like this:
wget-q-O / dev / null http://mysite.org/rep/ScriptTest.php
That works. Fine! Evidence that the program is ok and in the right place. But I just want it to be called if [email protected] receives a message. A cron is not the right solution.
To achieve this task, I've read that I could user a .forward file, or encode a pipe redirection in the alias of [email protected]. I prefer this solution but it does not work. It must be a syntax problem or something so simple, but I can not find.
In the alias redirection of [email protected], I code, literally
"| Http://mysite.org/rep/ScriptTest.php"
If I send an e-mail to [email protected], I receive a return email:
A message "could not feel That You Be Delivered to one or more of Its recipients. This is a permanent error. The FOLLOWING address (es) failed:
pipe to | http://mysite.org/rep/ScriptTest.php
generated by [email protected]
I do not see where it gets stuck. Can someone help me, give me a hint, saying it lacks a quote, a shebang?
Thank you
Pierre
First excuse my English. It is not my mother tongue.
This is my first speech on this forum. Given my question, I do not know if I should put it in E-Mail or in PHP forum. Be understanding.
Here's my situation.
I'm the webmaster of a site, and my host uses DirectAdmin.
I created my email accounts by using the DirectAdmin Panel control. I've also create some alias that point to one or several POP3 accounts.
I am also the technical manager of the forum on my site (Simple Machine Forum (SMF)).
I know how to make a PHP program that creates a POST directly in the data base of my SMF forum. It works.
Here's my question (or my problem).
What I am trying to do is redirect ALL mails that come for ONE particular user to a PHP program. I have a small PHP program that exists and works. It creates a post in my database. I made it just to test if I can activate it by receiving a mail. I managed to activate it, using a cron like this:
wget-q-O / dev / null http://mysite.org/rep/ScriptTest.php
That works. Fine! Evidence that the program is ok and in the right place. But I just want it to be called if [email protected] receives a message. A cron is not the right solution.
To achieve this task, I've read that I could user a .forward file, or encode a pipe redirection in the alias of [email protected]. I prefer this solution but it does not work. It must be a syntax problem or something so simple, but I can not find.
In the alias redirection of [email protected], I code, literally
"| Http://mysite.org/rep/ScriptTest.php"
If I send an e-mail to [email protected], I receive a return email:
A message "could not feel That You Be Delivered to one or more of Its recipients. This is a permanent error. The FOLLOWING address (es) failed:
pipe to | http://mysite.org/rep/ScriptTest.php
generated by [email protected]
I do not see where it gets stuck. Can someone help me, give me a hint, saying it lacks a quote, a shebang?
Thank you
Pierre