Re: vpopmail_add_user
| From: | Tom Rogers | Date: | Tue, 20 May 2003 07:48:25 +0000 |
| Subject: | Re: vpopmail_add_user | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148261@lists.php.net to get a copy of this message | ||
Hi,
Tuesday, May 20, 2003, 4:49:35 PM, you wrote:
n> Any one can help me with vpopmail_add_user ...
n> i want to create a virtual mailbox to a non linux user, as a free mailbox
n> can any user register himself ..
n> Nabil
You should explain what 'exacxtly' your problem is as this is a bit vague....
A lot depends how you have vpopmail setup to do password checking, I
use vpasswd checking and do something like this:
if(!vpopmail_add_user($_POST['uname'],$domain,$_POST['pword'])){
echo 'Failed to add user '.$_POST['uname'].'<br>';
}
If you have a busy site it is better to run the exec command to use
the vpopmail binaries as you may get into file locking problems with
the builtin vpopmail functions (speaking from old experience, YMMV)
--
regards,
Tom