Jump to content

Email Piping To Php


Recommended Posts

Hi Guys,

 

I am trying to generate a script to pipe all mail though a php script. This is so that I can check all mail to see if it is a reply from our ticket system or just someone replying to our noreply@ email address.

 

In the cpanel I have tried using '/[uSER]/public_html/[sCRIPT].php' and '/[uSER]/public_html/cgi-bin/[sCRIPT].php' with the file in both locations but have had no joy with either of them.

 

Am I putting the file location wrong could this be a support issue.

 

I am getting mail delivery errors sent back with:

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 |/[uSER]/public_html/[sCRIPT].php

generated by noreply@[DOMAIN]

local delivery failed

 

------ This is a copy of the message, including all the headers. ------

 

 

Regards

Dave

Edited by dave_st24
Link to comment
Share on other sites

When you log into cPanel you will see your accounts directory path displayed. It should be /home/cpanel-login. If you placed the script in the public_html folder then the path will be /home/cpanel-login/public_html/script-name.php

 

If you are still having problem please open a ticket with the help desk and they will help you further.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...