Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2006
    Posts
    72

    Question Pipe email message to a php script. Script redirect message to diff addy?

    I need to pipe email messages to a PHP script. The php script needs to insert a custom header in to the message and then forward the message on to a diff address.

    I think I can handle the part of inserting the header. But once I've done that, how can I redirect the message? I want it to still show as having come from the original sender. It should look the same as if I had created an actual forwarder within cPanel.

    TIA!

  2. #2
    Member
    Join Date
    Oct 2006
    Posts
    72

    Default

    I just thought it might be helpful to give some more information as to what I'm trying to accomplish.

    I have a number of email forwarders that all forward to a couple of different email accounts (on the same server under my domain name). I need to have my script insert a header into the message that will provide some information that my email clients will look for. Then after the header is added, I want to forward the message on to it's final destination which is a different email address still on the same server and under my domain name.

    What I mean by redirect is to do what the "MailRedirect" extension in Thunderbird does. A message that has been Redirected shows NOTHING about having been forward--until you look at the headers. Such a message still shows as being addressed TO the same addresses and from the same address. When I look at the headers, it shows "forwarded by", "forwarded on" etc.

Similar Threads & Tags
Similar threads

  1. Email Piping to script works, but sender gets an error message?
    By itzhero in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-24-2010, 12:50 PM
  2. pipe email problem from php script
    By isputra in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 06-20-2008, 07:05 AM
  3. Email Pipe: Bounce Back Message makes no sense
    By doni49 in forum E-mail Discussions
    Replies: 2
    Last Post: 03-26-2007, 09:46 PM
  4. Email pipe works | Sender still gets error message
    By nybble in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-23-2004, 01:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube