Piping Email to PHP Script

Status
Not open for further replies.

hbweb500

New Member
Messages
9
Reaction score
0
Points
0
I am trying to route an email from my gmail account to jott@hbweb500.x10hosting.com. I set up an automatic forward to route the email to a script (the path should be correct, /home/hbweb500/public_html/jott/test.php).

Unfortunately, any time I send an email from gmail to jott@hbweb500.x10hosting.com, I receive a permanent error in my gmail mailbox stating that local delivery failed.

I have the permissons of test.php set to 755.

If it matters at all, the script I am using to process the email is at http://jarednevans.typepad.com/technoblog/2006/02/process_an_emai.html

Also, the email arrives in the webmail box perfectly fine, the error just occurs when I forward to the script.

Anybody have experience with this?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I don't. You might need to seek help from the script developer.

-Corey
 

t2t2t

New Member
Messages
690
Reaction score
0
Points
0
ahh yes, i did some testing with piping e-mail few days ago :p

Enter directory relative to your home direcotry (/home/<cpanel name> is automatically entered), have it 755, And on first line only have following line:
Code:
#!/usr/bin/php -q
(so it would look like following)
PHP:
#!/usr/bin/php -q
<?php
// Code here

More information: http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/

PS. I'll be releasing a code with working pipe to php code soon, with a interesting use.
 
Last edited:

hbweb500

New Member
Messages
9
Reaction score
0
Points
0
Ah, its moot anymore. I was using the script to parse email files from jott so I wouldn't have to incur text messaging fees, but I just blocked all text messaging on my phone so its no longer an issue. Thanks though!
 
Status
Not open for further replies.
Top