Skip to main content

Add a forward with PHP

Comments

9 comments

  • cPanelMichael
    Hello :) You can forward emails using the "Forwarders" option in cPanel. Is there some other method you prefer to use? Thank you.
    0
  • SuperGlue
    Hello :D I have to redirect automatically with a php script :/
    0
  • cPanelMichael
    [quote="SuperGlue, post: 1733071">Hello :D I have to redirect automatically with a php script :/
    Could you clarify why you need to redirect email this way? For instance, what's a specific example of how you need to forward emails? Thank you.
    0
  • SuperGlue
    Hi, In fact, I have to create a little mail service. On my website, the user enter his real mail adress and i give him a "trash mail". But i can't redirrect automatically with Php :(
    0
  • cPanelMichael
    [quote="SuperGlue, post: 1739761">Hi, In fact, I have to create a little mail service. On my website, the user enter his real mail adress and i give him a "trash mail". But i can't redirrect automatically with Php :(
    I'm not sure I understand this scenario. Have you considered using the "Forwarder" option in cPanel? Thank you.
    0
  • SuperGlue
    Hi, If I use the "forwarder" option, I have to make that for each client... I would to create a php script to automate this action... Thank's
    0
  • cPanelMichael
    You could use our API. The function you would use is documented here: cPanel API2 - Forwarder Functions Thank you.
    0
  • SuperGlue
    Thanks, but i'm a novice and i dont understand how to use the API :( I've seen that i have to use this code : [QUOTE] The domain that corresponds to the forwarder. The email address that acts as the forwarder. The email address that receives forwarded mail.
    But where i have to write this code ?
    0
  • cPanelMichael
    It's highly likely that you will need to consult with a developer to write this code for you if you are not comfortable using our API. It involves developing a custom PHP script, of which this page might help:
    0

Please sign in to leave a comment.