The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Script for creating e-mail forward

Discussion in 'E-mail Discussions' started by hara, May 4, 2004.

  1. hara

    hara Registered

    Joined:
    May 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Does someone know how to create a forward e-mail using a PHP Script ?
     
  2. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    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. hara

    hara Registered

    Joined:
    May 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    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. hara

    hara Registered

    Joined:
    May 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    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]
     
    #6 SarcNBit, May 4, 2004
    Last edited: May 4, 2004
Loading...

Share This Page