Results 1 to 6 of 6

Thread: PHP Script for creating e-mail forward

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    3

    Default PHP Script for creating e-mail forward

    Does someone know how to create a forward e-mail using a PHP Script ?

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    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?

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    3

    Default

    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...

  4. #4
    Member bamasbest's Avatar
    Join Date
    Jan 2004
    Posts
    531

    Default

    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

  5. #5
    Registered User
    Join Date
    May 2004
    Posts
    3

    Default

    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 !!!

  6. #6
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    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.

Similar Threads

  1. PHP Form Mail script does not send mail
    By fr0gman in forum New User Questions
    Replies: 11
    Last Post: 12-08-2007, 10:48 PM
  2. forward All recieved mail to a PHP file
    By nasser110 in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 09-15-2007, 04:10 PM
  3. PHP mail script owner and exim mail logs
    By neo4242002 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 05-16-2007, 08:06 AM
  4. creating email accounts php script that works with cpanel, is it possible?
    By technicolor in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-30-2006, 06:23 AM
  5. Email Forward to PHP Script
    By cmdr_bond in forum cPanel & WHM Discussions
    Replies: 13
    Last Post: 03-19-2006, 07:21 AM