Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Help with Piping email into PHP script
Old 03-11-2008, 05:50 PM Help with Piping email into PHP script
Skilled Talker

Posts: 64
Name: Ralph Freshour
Trades: 0
I'm using cPanel 11 on my website. I'm trying to create one forwarding email account (wx2@mywebsite.com) to pipe into a php script but the pipe isn't calling the script.

Here is my forwarding/piping syntax:

wx2@mywebsite.com to |/home/websitename/public_html/SMS.php

The script is set to 755.

I have other, regular forwards created and mail gets forwarded fine such as for sales, info, etc. to my hotmail account.

Here is the simple test script:

#!/usr/local/bin/php
<?php
mail('myaccount@hotmail.com', 'Subject', 'Message', 'From: wxod@mywebsite.com');
?>

The script works if I run it from a browser and it works if I run it from the command line in SSH - that is, I get the email message.

It just doesn't execute when the email comes in addressed to wx2@mywebsite.com and piped into this script.

I have other php scripts successfully using the mail() function so that is enabled on the server.

Since the script works from two sources and not as being piped from an incoming email, I suspect the problem is in the piping syntax - I can't think of anything else ???
__________________
RalphF
Business Text Messaging Services

Please login or register to view this content. Registration is FREE
rfresh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Help with Piping email into PHP script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23052 seconds with 12 queries