Does someone know how to create a forward e-mail using a PHP Script ?
Does someone know how to create a forward e-mail using a PHP Script ?
Are you trying to create a forwarder (like an alias) that will accept mail at one address and send it to another or are you trying to allow a php script to forward mail to a certain account?
I'm trying to create an alias...
Like me@mydomain.com send to me@myprovider.net !
I would like to create this using PHP in my own site instead using the CPanel...
So,
You want to create a php script that scans your pop3 or imap, parses the data and then forwards the mail to another account?
This should be "doable" provided you have login and password details for the account and that you set a cron job to execute the script.
Much easier (IMO), to do this via cPanel. Heck, that is why you are paying for cPanel![]()
I will try to explain better...
I can't give access to CPanel to every person that access my private area in my site...
In private area, they can create alias to their own e-mail, like person@mydomain.com redirects to person@provider.net !!!
I understand.
You need to create a script that edits the /etc/valiases/ entry for the domain in question.
If you look around these forums I am sure you will come across mention of this.
[EDIT]Have a look at this post[/EDIT]
Last edited by SarcNBit; 05-04-2004 at 10:03 AM.