|
Charles Street
Registered User
Join date: 30 Jul 2004
Posts: 27
|
01-16-2005 23:09
Okay, im trying to pipe emails on my webserver sent from Secondlife using the built in Email Filtering feature in CPanel. The filter is working correctly and im not seeing any error messages being emailed to me but the script is not being ran! The script itself is alright and runs normally when executed from my browser.
If anyone has any expertise with this would you PLEASE explain to me how I should write the destination for a script in my public_html directory under the email filter. The example destination, "|/home/user/email.pl", doesn't work for my script when i plug it into that. What could be wrong? My script is a php script that inserts a row in a mysql table.
I'm trying to hook up a Red Cross donation system I started up so that I am able to keep track of how much is being donated and who is donating so i really want to get this fixed. I appreciate anyone who can help with this problem.
Thanks
|
|
Evil Fool
"==" != "="
Join date: 30 Jul 2004
Posts: 110
|
01-16-2005 23:11
a note on that: i've had this problem with enom, godaddy, gmail, and even dreamhost email forwarding...
the problem with this is, I cannot sell a plot of my land now, as my update server is kinda just stuck there, cuz if I move it to another sim, bam, the scripts stop working
So yeah... would be great if someone could explain how to get this working
|
|
Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
|
01-16-2005 23:22
Charles I sent you a couple of IMs in game.
|
|
Lance LeFay
is a Thug
Join date: 1 May 2003
Posts: 1,488
|
01-16-2005 23:22
Shouldn't this go in the Scripting or Technical Issues forum?
_____________________
"Hoochie Hair is high on my list" - Andrew Linden "Adorable is 'they pay me to say you are cute'" -Barnesworth Anubis
|
|
Charles Street
Registered User
Join date: 30 Jul 2004
Posts: 27
|
01-17-2005 12:08
bump
|
|
Charles Street
Registered User
Join date: 30 Jul 2004
Posts: 27
|
01-17-2005 13:20
Alright people i got it working.
Thanks to aaron i had to "whereis php" in my shell access and find the correct php location. After that i went to the Email Filtering and entered the following in the destination spot.
|/usr/bin/php -f /home/MYUSERNAME/public_html/THESCRIPT.php
I hope this helps other people and thanks Aaron for the headsup.
|
|
Jeska Linden
Administrator
Join date: 26 Jul 2004
Posts: 2,388
|
01-17-2005 13:34
Moved this over to technical issues for any further discussion.
|
|
Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
|
01-17-2005 14:01
Awesome Charles! I'm glad you got it working. I ran into the same problem on the server I just set up, where php wasn't in the "standard" location due to virtual hosts, blah blah blah... Anyway, whereis usually points me in the right direction!
Cool beans!
|
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
01-17-2005 14:42
I found this .procmail script that was the missing piece for me... :0 * ^To.*(your_script_email@somedomain\.com) | /usr/bin/php -q /our/script.php Although in my case, I'll probably be replacing the php with some C++ code. 
_____________________
~ Tiger Crossing ~ (Nonsanity)
|