|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||||
|
|||||
|
Email Piping anyone?
Well im making my first post on CW in quite a long time, (exams etc). So anyway recently ive been working with email piping, trying to get a script to post content to my site from email.
So here is how i have the setup.... using Cpanel to forward the email to the script using: Code:
|/home/andrew/public_html/postmaster.php Now the problem is that the script process's it fine, but then i get a mail delivery error back from my server even though the script works just fine. Below is a copy of the error email i get. (I dont need reminding that im still on PHP4 here, site isnt ready for PHP5 yet) Code:
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 |/home/andrew/public_html/postmaster.php
generated by xxxxxxxxxxxxxx@blog.mydomain.com
The following text was generated during the delivery attempt:
------ pipe to |/home/andrew/public_html/postmaster.php
generated by xxxxxxxxxxxxxx@blog.mydomain.com ------
Content-type: text/html
X-Powered-By: PHP/4.4.0
------ This is a copy of the message, including all the headers. ------
Return-path: <xxxxxxxxxx@mydomain.com>
Received: from [86.138.76.43] (helo=[86.138.76.43])
by myserver.mydomain.com with esmtpa (Exim 4.52)
id 1EhYsA-0006AY-Jw
for xxxxxxx@blog.mydomain.com; Wed, 30 Nov 2005 20:48:15 +0000
Message-ID: <438E1015.50106@mydomain.com>
Disposition-Notification-To: Andy Walsh <xxxxxxx@mydomain.com>
Date: Wed, 30 Nov 2005 20:48:21 +0000
From: Andy Walsh <xxxxxxx@mydomain.com>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: xxxxxxx@blog.mydomain.com
Subject: Testing
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Blah blah blah, my testing message.....
Here is the php i found after googling.... php Code:
So my question is, why is it still returning this error message even though the script runs fine? Worse still it doesnt even say what is wrong.... Any help would be appreciated Andrew |
|
#2
|
||||
|
||||
|
RE: Email Piping anyone?
probably should of put this in Server Admin forum, but it could equally be a php problem. Ah ill just move it to server as it is unlikely to be php.
|
|
#3
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'Server Administration' by Andrew.
Reason: |
|
#4
|
||||
|
||||
|
RE: Email Piping anyone?
Right it doesnt seem to be my script, ive checked all the things i can think of. If its any help im using Sendmail/Exim on a cpanel server (only have cpanel for friends of mine who have sites on my server)
|
|
#5
|
|||
|
|||
|
RE: Email Piping anyone?
Hi, sorry for the late chime in...just found this thread.
I think the problem is here: #!/usr/bin/php Your path to php is probably '/usr/local/bin/php' try replacing that in the script and you won't get the errors. |
|
#6
|
||||||||
|
||||||||
|
RE: Email Piping anyone?
EDIT: Never mind, problem solved. For future reerence for anyone else who's a knucklehead like me, use "#!/usr/bin/php -q" instead of "#!/usr/bin/php" (sans quotes).
I seem to be having a problem. Everything does what it's supposed to, but I get an error message anyway: php Code:
The script is as follows: php Code:
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Email Piping anyone? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|