Sending bouncebacks to a php script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • canstocker
    Junior Member
    • Mar 2004
    • 26

    Sending bouncebacks to a php script

    Hello,

    I'm trying to write a mailing list program. I would like to have bounce backs go to a php script.

    I noticed that the "Return-path" in the head is always myusername@cpanelx.gzo.com

    I cannot seem to overwrite this part in the header.

    Is it possible to have mail that goes to myusername@cpanelx.gzo.com go to a php script? If not, is there a way to overwite "Return-Path" when sending the email to a different email address?

    Thanks, Dan.
  • james
    Senior Member
    • Mar 2004
    • 183

    #2
    You need to set up an email forwarder for username@domainn.com to forward to this location.

    Comment

    • canstocker
      Junior Member
      • Mar 2004
      • 26

      #3
      How do I setup a forwarder when the return-path goes to: myusername@cpanelx.gzo.com ?

      Dan.

      Comment

      • james
        Senior Member
        • Mar 2004
        • 183

        #4
        I think myusername@cpanelxx.gzo.com is the same as myusername@domain.com. They both go to the same mailbox.

        If you set up a forwarder for myusername@domain.com it should work.

        Comment

        • canstocker
          Junior Member
          • Mar 2004
          • 26

          #5
          I've tried... it doesn't work unfortunately.

          Any other ideas?

          Comment

          • AndrewT
            Administrator
            • Mar 2004
            • 3653

            #6
            As I replied to your ticket, you should be able to set the return_path by sending the proper mail header through the mail() function. Please see the PHP documentation.

            Comment

            Working...