Create email forward for each new user - best way?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ben48
Forum Newbie
Posts: 5
Joined: Wed May 20, 2009 3:24 pm

Create email forward for each new user - best way?

Post by Ben48 »

Hey all,

So, I need to create an email forward for each new user who registers on my site. I've found two ways of doing this:

1. Create a catch-all address and pipe mail to a PHP script that will check my database for the forwarding info and then send to correct address via the mail() command.

2. Use this script (http://www.zubrag.com/scripts/cpanel-em ... warder.php) with cpanel to create a real forward at user registration.

Is one solution better/more reliable than the other?

Thanks in advance.
Post Reply