Add a forward with PHP
Hy,
my host use the cpanel and I have to add automatically a new forwarding with php but I dont know how to ...
Can u help me ?
Thanks :D
(I'm French, sorry for possibles errors...)
-
Hello :) You can forward emails using the "Forwarders" option in cPanel. Is there some other method you prefer to use? Thank you. 0 -
Hello :D I have to redirect automatically with a php script :/ 0 -
[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 -
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 -
[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 -
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 -
You could use our API. The function you would use is documented here: cPanel API2 - Forwarder Functions Thank you. 0 -
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
Please sign in to leave a comment.
Comments
9 comments